OLD | NEW |
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/web/WebFrame.h" | 8 #include "public/web/WebFrame.h" |
9 #include "public/web/WebSandboxFlags.h" | 9 #include "public/web/WebSandboxFlags.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Set sandbox flags replicated from another process. | 36 // Set sandbox flags replicated from another process. |
37 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; | 37 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; |
38 | 38 |
39 // Set frame |name| and |uniqueName| replicated from another process. | 39 // Set frame |name| and |uniqueName| replicated from another process. |
40 virtual void setReplicatedName(const WebString& name, const WebString& uniqu
eName) const = 0; | 40 virtual void setReplicatedName(const WebString& name, const WebString& uniqu
eName) const = 0; |
41 | 41 |
42 // Set frame enforcement of strict mixed content checking replicated from an
other process. | 42 // Set frame enforcement of strict mixed content checking replicated from an
other process. |
43 virtual void setReplicatedShouldEnforceStrictMixedContentChecking(bool) cons
t = 0; | 43 virtual void setReplicatedShouldEnforceStrictMixedContentChecking(bool) cons
t = 0; |
44 | 44 |
| 45 // Set the frame to a unique origin that is potentially trustworthy, |
| 46 // replicated from another process. |
| 47 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0
; |
| 48 |
45 virtual void DispatchLoadEventForFrameOwner() const = 0; | 49 virtual void DispatchLoadEventForFrameOwner() const = 0; |
46 | 50 |
47 virtual void didStartLoading() = 0; | 51 virtual void didStartLoading() = 0; |
48 virtual void didStopLoading() = 0; | 52 virtual void didStopLoading() = 0; |
49 | 53 |
50 // Returns true if this frame should be ignored during hittesting. | 54 // Returns true if this frame should be ignored during hittesting. |
51 virtual bool isIgnoredForHitTest() const = 0; | 55 virtual bool isIgnoredForHitTest() const = 0; |
52 | 56 |
53 // Temporary method to allow embedders to get the script context of a | 57 // Temporary method to allow embedders to get the script context of a |
54 // remote frame. This should only be used by legacy code that has not yet | 58 // remote frame. This should only be used by legacy code that has not yet |
55 // migrated over to the new OOPI infrastructure. | 59 // migrated over to the new OOPI infrastructure. |
56 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; | 60 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; |
57 | 61 |
58 protected: | 62 protected: |
59 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 63 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
60 | 64 |
61 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 65 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
62 // to call these on a WebRemoteFrame. | 66 // to call these on a WebRemoteFrame. |
63 bool isWebLocalFrame() const override = 0; | 67 bool isWebLocalFrame() const override = 0; |
64 WebLocalFrame* toWebLocalFrame() override = 0; | 68 WebLocalFrame* toWebLocalFrame() override = 0; |
65 bool isWebRemoteFrame() const override = 0; | 69 bool isWebRemoteFrame() const override = 0; |
66 WebRemoteFrame* toWebRemoteFrame() override = 0; | 70 WebRemoteFrame* toWebRemoteFrame() override = 0; |
67 }; | 71 }; |
68 | 72 |
69 } // namespace blink | 73 } // namespace blink |
70 | 74 |
71 #endif // WebRemoteFrame_h | 75 #endif // WebRemoteFrame_h |
OLD | NEW |