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/platform/WebInsecureRequestPolicy.h" |
9 #include "public/web/WebContentSecurityPolicy.h" | 9 #include "public/web/WebContentSecurityPolicy.h" |
10 #include "public/web/WebFrame.h" | 10 #include "public/web/WebFrame.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Set security origin replicated from another process. | 47 // Set security origin replicated from another process. |
48 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; | 48 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; |
49 | 49 |
50 // Set sandbox flags replicated from another process. | 50 // Set sandbox flags replicated from another process. |
51 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; | 51 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; |
52 | 52 |
53 // Set frame |name| and |uniqueName| replicated from another process. | 53 // Set frame |name| and |uniqueName| replicated from another process. |
54 virtual void setReplicatedName(const WebString& name, | 54 virtual void setReplicatedName(const WebString& name, |
55 const WebString& uniqueName) const = 0; | 55 const WebString& uniqueName) const = 0; |
56 | 56 |
| 57 virtual void setReplicatedFeaturePolicyHeader( |
| 58 const WebString& headerValue) const = 0; |
| 59 |
57 // Adds |header| to the set of replicated CSP headers. | 60 // Adds |header| to the set of replicated CSP headers. |
58 virtual void addReplicatedContentSecurityPolicyHeader( | 61 virtual void addReplicatedContentSecurityPolicyHeader( |
59 const WebString& headerValue, | 62 const WebString& headerValue, |
60 WebContentSecurityPolicyType, | 63 WebContentSecurityPolicyType, |
61 WebContentSecurityPolicySource) const = 0; | 64 WebContentSecurityPolicySource) const = 0; |
62 | 65 |
63 // Resets replicated CSP headers to an empty set. | 66 // Resets replicated CSP headers to an empty set. |
64 virtual void resetReplicatedContentSecurityPolicy() const = 0; | 67 virtual void resetReplicatedContentSecurityPolicy() const = 0; |
65 | 68 |
66 // Set frame enforcement of insecure request policy replicated from another | 69 // Set frame enforcement of insecure request policy replicated from another |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // to call these on a WebRemoteFrame. | 102 // to call these on a WebRemoteFrame. |
100 bool isWebLocalFrame() const override = 0; | 103 bool isWebLocalFrame() const override = 0; |
101 WebLocalFrame* toWebLocalFrame() override = 0; | 104 WebLocalFrame* toWebLocalFrame() override = 0; |
102 bool isWebRemoteFrame() const override = 0; | 105 bool isWebRemoteFrame() const override = 0; |
103 WebRemoteFrame* toWebRemoteFrame() override = 0; | 106 WebRemoteFrame* toWebRemoteFrame() override = 0; |
104 }; | 107 }; |
105 | 108 |
106 } // namespace blink | 109 } // namespace blink |
107 | 110 |
108 #endif // WebRemoteFrame_h | 111 #endif // WebRemoteFrame_h |
OLD | NEW |