Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: third_party/WebKit/public/web/WebRemoteFrameClient.h

Issue 1973133002: ✀ Remove postMessage plumbing for swappedout:// ✀ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to use std::move instead of release(). Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemoteFrameClient_h 5 #ifndef WebRemoteFrameClient_h
6 #define WebRemoteFrameClient_h 6 #define WebRemoteFrameClient_h
7 7
8 #include "public/platform/WebFocusType.h" 8 #include "public/platform/WebFocusType.h"
9 #include "public/platform/WebSecurityOrigin.h" 9 #include "public/platform/WebSecurityOrigin.h"
10 #include "public/web/WebDOMMessageEvent.h" 10 #include "public/web/WebDOMMessageEvent.h"
11 #include "public/web/WebFrame.h" 11 #include "public/web/WebFrame.h"
12 12
13 namespace blink { 13 namespace blink {
14 class WebInputEvent; 14 class WebInputEvent;
15 enum class WebClientRedirectPolicy; 15 enum class WebClientRedirectPolicy;
16 enum class WebFrameLoadType; 16 enum class WebFrameLoadType;
17 struct WebRect; 17 struct WebRect;
18 18
19 class WebRemoteFrameClient { 19 class WebRemoteFrameClient {
20 public: 20 public:
21 // Specifies the reason for the detachment. 21 // Specifies the reason for the detachment.
22 enum class DetachType { Remove, Swap }; 22 enum class DetachType { Remove, Swap };
23 23
24 // Notify the embedder that it should remove this frame from the frame tree 24 // Notify the embedder that it should remove this frame from the frame tree
25 // and release any resources associated with it. 25 // and release any resources associated with it.
26 virtual void frameDetached(DetachType) { } 26 virtual void frameDetached(DetachType) { }
27 27
28 // Notifies the embedder that a postMessage was issued to a remote frame. 28 // Notifies the embedder that a postMessage was issued to a remote frame.
29 virtual void postMessageEvent( 29 virtual void forwardPostMessage(
30 WebLocalFrame* sourceFrame, 30 WebLocalFrame* sourceFrame,
31 WebRemoteFrame* targetFrame, 31 WebRemoteFrame* targetFrame,
32 WebSecurityOrigin targetOrigin, 32 WebSecurityOrigin targetOrigin,
33 WebDOMMessageEvent) { } 33 WebDOMMessageEvent) {}
34 34
35 // Send initial drawing parameters to a child frame that is being rendered 35 // Send initial drawing parameters to a child frame that is being rendered
36 // out of process. 36 // out of process.
37 virtual void initializeChildFrame(float deviceScaleFactor) { } 37 virtual void initializeChildFrame(float deviceScaleFactor) { }
38 38
39 // A remote frame was asked to start a navigation. 39 // A remote frame was asked to start a navigation.
40 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren tEntry) { } 40 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren tEntry) { }
41 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {} 41 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {}
42 42
43 // FIXME: Remove this method once we have input routing in the browser 43 // FIXME: Remove this method once we have input routing in the browser
(...skipping 12 matching lines...) Expand all
56 // response to <tab>) and encounters a remote frame. 56 // response to <tab>) and encounters a remote frame.
57 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { } 57 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { }
58 58
59 // This frame was focused by another frame. 59 // This frame was focused by another frame.
60 virtual void frameFocused() { } 60 virtual void frameFocused() { }
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif // WebRemoteFrameClient_h 65 #endif // WebRemoteFrameClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698