| 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 header. May be empty if no header was sent with the |
| 88 // document. |
| 89 std::string feature_policy_header; |
| 90 |
| 87 // Accumulated CSP headers - gathered from http headers, <meta> elements, | 91 // Accumulated CSP headers - gathered from http headers, <meta> elements, |
| 88 // parent frames (in case of about:blank frames). | 92 // parent frames (in case of about:blank frames). |
| 89 std::vector<ContentSecurityPolicyHeader> accumulated_csp_headers; | 93 std::vector<ContentSecurityPolicyHeader> accumulated_csp_headers; |
| 90 | 94 |
| 91 // Whether the frame is in a document tree or a shadow tree, per the Shadow | 95 // 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/ | 96 // 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 | 97 // 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 | 98 // 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 | 99 // params: having a const member implicitly deletes the copy assignment |
| 96 // operator. | 100 // operator. |
| 97 blink::WebTreeScopeType scope; | 101 blink::WebTreeScopeType scope; |
| 98 | 102 |
| 99 // The insecure request policy that a frame's current document is enforcing. | 103 // 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 | 104 // Updates are immediately sent to all frame proxies when frames live in |
| 101 // different processes. | 105 // different processes. |
| 102 blink::WebInsecureRequestPolicy insecure_request_policy; | 106 blink::WebInsecureRequestPolicy insecure_request_policy; |
| 103 | 107 |
| 104 // True if a frame's origin is unique and should be considered potentially | 108 // True if a frame's origin is unique and should be considered potentially |
| 105 // trustworthy. | 109 // trustworthy. |
| 106 bool has_potentially_trustworthy_unique_origin; | 110 bool has_potentially_trustworthy_unique_origin; |
| 107 | 111 |
| 108 // TODO(alexmos): Eventually, this structure can also hold other state that | 112 // TODO(alexmos): Eventually, this structure can also hold other state that |
| 109 // needs to be replicated, such as frame sizing info. | 113 // needs to be replicated, such as frame sizing info. |
| 110 }; | 114 }; |
| 111 | 115 |
| 112 } // namespace content | 116 } // namespace content |
| 113 | 117 |
| 114 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ | 118 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ |
| OLD | NEW |