| 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 bool has_potentially_trustworthy_unique_origin); | 47 bool has_potentially_trustworthy_unique_origin, |
| 48 bool has_received_user_gesture); |
| 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 |
| 57 // the ancestors of a local frame. So, as a future improvement, we could | 58 // the ancestors of a local frame. So, as a future improvement, we could |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 123 // True if a frame's origin is unique and should be considered potentially | 124 // True if a frame's origin is unique and should be considered potentially |
| 124 // trustworthy. | 125 // trustworthy. |
| 125 bool has_potentially_trustworthy_unique_origin; | 126 bool has_potentially_trustworthy_unique_origin; |
| 127 |
| 128 // Whether the frame has ever received a user gesture anywhere. |
| 129 bool has_received_user_gesture; |
| 126 }; | 130 }; |
| 127 | 131 |
| 128 } // namespace content | 132 } // namespace content |
| 129 | 133 |
| 130 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ | 134 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ |
| OLD | NEW |