Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebFeaturePolicy.h |
| diff --git a/third_party/WebKit/public/platform/WebFeaturePolicy.h b/third_party/WebKit/public/platform/WebFeaturePolicy.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e0158a7494b86b5f449e0314b84183ad62ad1444 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebFeaturePolicy_h |
| +#define WebFeaturePolicy_h |
| + |
| +#include "WebString.h" |
| +#include "WebVector.h" |
| + |
| +namespace blink { |
| + |
| +struct WebFeaturePolicy { |
| + struct ParsedWhitelist { |
| + ParsedWhitelist() : matchesAllOrigins(false) {} |
| + WebString featureName; |
| + bool matchesAllOrigins; |
| + WebVector<WebString> origins; |
|
iclelland
2016/11/23 20:20:28
Can we use WebVector<WebSecurityOrigin> for this?
raymes
2016/11/29 08:20:34
Done.
|
| + }; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebFeaturePolicy_h |