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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 // across different, unrelated navigations (i.e. to refer to the frame | 77 // across different, unrelated navigations (i.e. to refer to the frame |
78 // when going back/forward in session history OR when refering to the frame | 78 // when going back/forward in session history OR when refering to the frame |
79 // in layout tests results). | 79 // in layout tests results). |
80 // | 80 // |
81 // |unique_name| needs to be replicated to ensure that unique name for a given | 81 // |unique_name| needs to be replicated to ensure that unique name for a given |
82 // frame is the same across all renderers - without replication a renderer | 82 // frame is the same across all renderers - without replication a renderer |
83 // might arrive at a different value when recalculating the unique name from | 83 // might arrive at a different value when recalculating the unique name from |
84 // scratch. | 84 // scratch. |
85 std::string unique_name; | 85 std::string unique_name; |
86 | 86 |
87 // Feature policy headers | |
88 std::vector<std::string> feature_policy_headers; | |
raymes
2016/11/07 02:16:01
Does this really need to be a vector of string, as
iclelland
2016/11/07 03:37:03
I was thinking of the case of multiple HTTP header
| |
89 | |
87 // Accumulated CSP headers - gathered from http headers, <meta> elements, | 90 // Accumulated CSP headers - gathered from http headers, <meta> elements, |
88 // parent frames (in case of about:blank frames). | 91 // parent frames (in case of about:blank frames). |
89 std::vector<ContentSecurityPolicyHeader> accumulated_csp_headers; | 92 std::vector<ContentSecurityPolicyHeader> accumulated_csp_headers; |
90 | 93 |
91 // Whether the frame is in a document tree or a shadow tree, per the Shadow | 94 // Whether the frame is in a document tree or a shadow tree, per the Shadow |
92 // DOM spec: https://w3c.github.io/webcomponents/spec/shadow/ | 95 // DOM spec: https://w3c.github.io/webcomponents/spec/shadow/ |
93 // Note: This should really be const, as it can never change once a frame is | 96 // Note: This should really be const, as it can never change once a frame is |
94 // created. However, making it const makes it a pain to embed into IPC message | 97 // created. However, making it const makes it a pain to embed into IPC message |
95 // params: having a const member implicitly deletes the copy assignment | 98 // params: having a const member implicitly deletes the copy assignment |
96 // operator. | 99 // operator. |
97 blink::WebTreeScopeType scope; | 100 blink::WebTreeScopeType scope; |
98 | 101 |
99 // The insecure request policy that a frame's current document is enforcing. | 102 // The insecure request policy that a frame's current document is enforcing. |
100 // Updates are immediately sent to all frame proxies when frames live in | 103 // Updates are immediately sent to all frame proxies when frames live in |
101 // different processes. | 104 // different processes. |
102 blink::WebInsecureRequestPolicy insecure_request_policy; | 105 blink::WebInsecureRequestPolicy insecure_request_policy; |
103 | 106 |
104 // True if a frame's origin is unique and should be considered potentially | 107 // True if a frame's origin is unique and should be considered potentially |
105 // trustworthy. | 108 // trustworthy. |
106 bool has_potentially_trustworthy_unique_origin; | 109 bool has_potentially_trustworthy_unique_origin; |
107 | 110 |
108 // TODO(alexmos): Eventually, this structure can also hold other state that | 111 // TODO(alexmos): Eventually, this structure can also hold other state that |
109 // needs to be replicated, such as frame sizing info. | 112 // needs to be replicated, such as frame sizing info. |
110 }; | 113 }; |
111 | 114 |
112 } // namespace content | 115 } // namespace content |
113 | 116 |
114 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ | 117 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ |
OLD | NEW |