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

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

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Pass through FrameReplicationState Created 3 years, 11 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
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 WebRemoteFrame_h 5 #ifndef WebRemoteFrame_h
6 #define WebRemoteFrame_h 6 #define WebRemoteFrame_h
7 7
8 #include "public/platform/WebFeaturePolicy.h" 8 #include "public/platform/WebFeaturePolicy.h"
9 #include "public/platform/WebInsecureRequestPolicy.h" 9 #include "public/platform/WebInsecureRequestPolicy.h"
10 #include "public/web/WebContentSecurityPolicy.h" 10 #include "public/web/WebContentSecurityPolicy.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Returns true if this frame should be ignored during hittesting. 88 // Returns true if this frame should be ignored during hittesting.
89 virtual bool isIgnoredForHitTest() const = 0; 89 virtual bool isIgnoredForHitTest() const = 0;
90 90
91 // This is called in OOPIF scenarios when an element contained in this 91 // This is called in OOPIF scenarios when an element contained in this
92 // frame is about to enter fullscreen. This frame's owner 92 // frame is about to enter fullscreen. This frame's owner
93 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling 93 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling
94 // this prepares FullscreenController to enter fullscreen for that frame 94 // this prepares FullscreenController to enter fullscreen for that frame
95 // owner. 95 // owner.
96 virtual void willEnterFullscreen() = 0; 96 virtual void willEnterFullscreen() = 0;
97 97
98 virtual void setHasReceivedUserGesture() = 0;
99
98 // Temporary method to allow embedders to get the script context of a 100 // Temporary method to allow embedders to get the script context of a
99 // remote frame. This should only be used by legacy code that has not yet 101 // remote frame. This should only be used by legacy code that has not yet
100 // migrated over to the new OOPI infrastructure. 102 // migrated over to the new OOPI infrastructure.
101 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; 103 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0;
102 104
103 protected: 105 protected:
104 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} 106 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {}
105 107
106 // Inherited from WebFrame, but intentionally hidden: it never makes sense 108 // Inherited from WebFrame, but intentionally hidden: it never makes sense
107 // to call these on a WebRemoteFrame. 109 // to call these on a WebRemoteFrame.
108 bool isWebLocalFrame() const override = 0; 110 bool isWebLocalFrame() const override = 0;
109 WebLocalFrame* toWebLocalFrame() override = 0; 111 WebLocalFrame* toWebLocalFrame() override = 0;
110 bool isWebRemoteFrame() const override = 0; 112 bool isWebRemoteFrame() const override = 0;
111 WebRemoteFrame* toWebRemoteFrame() override = 0; 113 WebRemoteFrame* toWebRemoteFrame() override = 0;
112 }; 114 };
113 115
114 } // namespace blink 116 } // namespace blink
115 117
116 #endif // WebRemoteFrame_h 118 #endif // WebRemoteFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | third_party/WebKit/public/web/WebRemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698