| 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 CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ | 5 #ifndef CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ |
| 6 #define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ | 6 #define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // This structure holds information that needs to be replicated between a | 38 // This structure holds information that needs to be replicated between a |
| 39 // RenderFrame and any of its associated RenderFrameProxies. | 39 // RenderFrame and any of its associated RenderFrameProxies. |
| 40 struct CONTENT_EXPORT FrameReplicationState { | 40 struct CONTENT_EXPORT FrameReplicationState { |
| 41 FrameReplicationState(); | 41 FrameReplicationState(); |
| 42 FrameReplicationState(blink::WebTreeScopeType scope, | 42 FrameReplicationState(blink::WebTreeScopeType scope, |
| 43 const std::string& name, | 43 const std::string& name, |
| 44 const std::string& unique_name, | 44 const std::string& unique_name, |
| 45 blink::WebSandboxFlags sandbox_flags, | 45 blink::WebSandboxFlags sandbox_flags, |
| 46 blink::WebInsecureRequestPolicy insecure_request_policy, | 46 blink::WebInsecureRequestPolicy insecure_request_policy, |
| 47 const std::vector<unsigned>& insecure_navigations_set, |
| 47 bool has_potentially_trustworthy_unique_origin); | 48 bool has_potentially_trustworthy_unique_origin); |
| 48 FrameReplicationState(const FrameReplicationState& other); | 49 FrameReplicationState(const FrameReplicationState& other); |
| 49 ~FrameReplicationState(); | 50 ~FrameReplicationState(); |
| 50 | 51 |
| 51 // Current origin of the frame. This field is updated whenever a frame | 52 // Current origin of the frame. This field is updated whenever a frame |
| 52 // navigation commits. | 53 // navigation commits. |
| 53 // | 54 // |
| 54 // TODO(alexmos): For now, |origin| updates are immediately sent to all frame | 55 // TODO(alexmos): For now, |origin| updates are immediately sent to all frame |
| 55 // proxies when in --site-per-process mode. This isn't ideal, since Blink | 56 // proxies when in --site-per-process mode. This isn't ideal, since Blink |
| 56 // typically needs a proxy's origin only when performing security checks on | 57 // typically needs a proxy's origin only when performing security checks on |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // created. However, making it const makes it a pain to embed into IPC message | 114 // created. However, making it const makes it a pain to embed into IPC message |
| 114 // params: having a const member implicitly deletes the copy assignment | 115 // params: having a const member implicitly deletes the copy assignment |
| 115 // operator. | 116 // operator. |
| 116 blink::WebTreeScopeType scope; | 117 blink::WebTreeScopeType scope; |
| 117 | 118 |
| 118 // The insecure request policy that a frame's current document is enforcing. | 119 // The insecure request policy that a frame's current document is enforcing. |
| 119 // Updates are immediately sent to all frame proxies when frames live in | 120 // Updates are immediately sent to all frame proxies when frames live in |
| 120 // different processes. | 121 // different processes. |
| 121 blink::WebInsecureRequestPolicy insecure_request_policy; | 122 blink::WebInsecureRequestPolicy insecure_request_policy; |
| 122 | 123 |
| 124 // The upgrade insecure navigations set that a frame's current document is |
| 125 // enforcing. Updates are immediately sent to all frame proxies when frames |
| 126 // live in different processes. |
| 127 std::vector<unsigned> insecure_navigations_set; |
| 128 |
| 123 // True if a frame's origin is unique and should be considered potentially | 129 // True if a frame's origin is unique and should be considered potentially |
| 124 // trustworthy. | 130 // trustworthy. |
| 125 bool has_potentially_trustworthy_unique_origin; | 131 bool has_potentially_trustworthy_unique_origin; |
| 126 }; | 132 }; |
| 127 | 133 |
| 128 } // namespace content | 134 } // namespace content |
| 129 | 135 |
| 130 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ | 136 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ |
| OLD | NEW |