OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
raymes
2017/01/25 01:00:42
nit: 2017
iclelland
2017/01/25 03:28:38
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_FEATURE_POLICY_FEATURE_POLICY_H_ | |
6 #define CONTENT_COMMON_FEATURE_POLICY_FEATURE_POLICY_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "content/common/content_export.h" | |
12 #include "url/origin.h" | |
13 | |
14 namespace content { | |
15 | |
16 // This struct holds feature policy whitelist data that needs to be replicated | |
17 // between a RenderFrame and any of its associated RenderFrameProxies. A list of | |
18 // these form a ParsedFeaturePolicyHeader. | |
19 // NOTE: These types are used for replication frame state between processes. | |
20 // They exist only because we can't transfer WebVectors directly over IPC. | |
21 struct CONTENT_EXPORT ParsedFeaturePolicyDeclaration { | |
22 ParsedFeaturePolicyDeclaration(); | |
23 ParsedFeaturePolicyDeclaration(std::string feature_name, | |
24 bool matches_all_origins, | |
25 std::vector<url::Origin> origins); | |
26 ParsedFeaturePolicyDeclaration(const ParsedFeaturePolicyDeclaration& rhs); | |
27 ~ParsedFeaturePolicyDeclaration(); | |
28 | |
29 std::string feature_name; | |
30 bool matches_all_origins; | |
31 std::vector<url::Origin> origins; | |
32 }; | |
33 using ParsedFeaturePolicyHeader = std::vector<ParsedFeaturePolicyDeclaration>; | |
raymes
2017/01/25 01:00:42
nit: newline before
iclelland
2017/01/25 14:58:04
Done.
| |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_COMMON_FEATURE_POLICY_FEATURE_POLICY_H_ | |
OLD | NEW |