| 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/platform/WebInsecureRequestPolicy.h" |
| 8 #include "public/web/WebContentSecurityPolicy.h" | 9 #include "public/web/WebContentSecurityPolicy.h" |
| 9 #include "public/web/WebFrame.h" | 10 #include "public/web/WebFrame.h" |
| 10 #include "public/web/WebSandboxFlags.h" | 11 #include "public/web/WebSandboxFlags.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 enum class WebTreeScopeType; | 15 enum class WebTreeScopeType; |
| 15 class WebFrameClient; | 16 class WebFrameClient; |
| 16 class WebRemoteFrameClient; | 17 class WebRemoteFrameClient; |
| 17 class WebString; | 18 class WebString; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 | 41 |
| 41 // Set frame |name| and |uniqueName| replicated from another process. | 42 // Set frame |name| and |uniqueName| replicated from another process. |
| 42 virtual void setReplicatedName(const WebString& name, const WebString& uniqu
eName) const = 0; | 43 virtual void setReplicatedName(const WebString& name, const WebString& uniqu
eName) const = 0; |
| 43 | 44 |
| 44 // Adds |header| to the set of replicated CSP headers. | 45 // Adds |header| to the set of replicated CSP headers. |
| 45 virtual void addReplicatedContentSecurityPolicyHeader(const WebString& heade
rValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) const = 0; | 46 virtual void addReplicatedContentSecurityPolicyHeader(const WebString& heade
rValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) const = 0; |
| 46 | 47 |
| 47 // Resets replicated CSP headers to an empty set. | 48 // Resets replicated CSP headers to an empty set. |
| 48 virtual void resetReplicatedContentSecurityPolicy() const = 0; | 49 virtual void resetReplicatedContentSecurityPolicy() const = 0; |
| 49 | 50 |
| 50 // Set frame enforcement of strict mixed content checking replicated from an
other process. | 51 // Set frame enforcement of insecure request policy replicated from another
process. |
| 51 virtual void setReplicatedShouldEnforceStrictMixedContentChecking(bool) cons
t = 0; | 52 virtual void setReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy) co
nst = 0; |
| 52 | 53 |
| 53 // Set the frame to a unique origin that is potentially trustworthy, | 54 // Set the frame to a unique origin that is potentially trustworthy, |
| 54 // replicated from another process. | 55 // replicated from another process. |
| 55 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0
; | 56 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0
; |
| 56 | 57 |
| 57 virtual void DispatchLoadEventForFrameOwner() const = 0; | 58 virtual void DispatchLoadEventForFrameOwner() const = 0; |
| 58 | 59 |
| 59 virtual void didStartLoading() = 0; | 60 virtual void didStartLoading() = 0; |
| 60 virtual void didStopLoading() = 0; | 61 virtual void didStopLoading() = 0; |
| 61 | 62 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 81 // to call these on a WebRemoteFrame. | 82 // to call these on a WebRemoteFrame. |
| 82 bool isWebLocalFrame() const override = 0; | 83 bool isWebLocalFrame() const override = 0; |
| 83 WebLocalFrame* toWebLocalFrame() override = 0; | 84 WebLocalFrame* toWebLocalFrame() override = 0; |
| 84 bool isWebRemoteFrame() const override = 0; | 85 bool isWebRemoteFrame() const override = 0; |
| 85 WebRemoteFrame* toWebRemoteFrame() override = 0; | 86 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace blink | 89 } // namespace blink |
| 89 | 90 |
| 90 #endif // WebRemoteFrame_h | 91 #endif // WebRemoteFrame_h |
| OLD | NEW |