Home | History | Annotate | Download | only in web
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef WebRemoteFrameClient_h
      6 #define WebRemoteFrameClient_h
      7 
      8 #include "public/web/WebDOMMessageEvent.h"
      9 #include "public/web/WebSecurityOrigin.h"
     10 
     11 namespace blink {
     12 class WebLocalFrame;
     13 class WebRemoteFrame;
     14 
     15 class WebRemoteFrameClient {
     16 public:
     17     // Notify the embedder that it should remove this frame from the frame tree
     18     // and release any resources associated with it.
     19     virtual void frameDetached() { }
     20 
     21     // Notifies the embedder that a postMessage was issued to a remote frame.
     22     virtual void postMessageEvent(
     23         WebLocalFrame* sourceFrame,
     24         WebRemoteFrame* targetFrame,
     25         WebSecurityOrigin targetOrigin,
     26         WebDOMMessageEvent) { }
     27 
     28     // Send initial drawing parameters to a child frame that is being rendered
     29     // out of process.
     30     virtual void initializeChildFrame(
     31         const WebRect& frameRect,
     32         float scaleFactor) { }
     33 };
     34 
     35 } // namespace blink
     36 
     37 #endif // WebRemoteFrameClient_h
     38