| 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
 | 
| index a2c03f79605f67d1a78cbbdc5b27ad6869d3a1f9..550b314f62cee1a30feea68a3e47cc890f1f3ba5 100644
 | 
| --- a/third_party/WebKit/public/platform/WebFeaturePolicy.h
 | 
| +++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
 | 
| @@ -11,16 +11,49 @@
 | 
|  
 | 
|  namespace blink {
 | 
|  
 | 
| -struct WebFeaturePolicy {
 | 
| -  struct ParsedWhitelist {
 | 
| -    ParsedWhitelist() : matchesAllOrigins(false) {}
 | 
| -    WebString featureName;
 | 
| -    bool matchesAllOrigins;
 | 
| -    WebVector<WebSecurityOrigin> origins;
 | 
| -  };
 | 
| +enum class WebFeaturePolicyFeature {
 | 
| +  NotFound = 0,
 | 
| +  DocumentCookie,
 | 
| +  DocumentDomain,
 | 
| +  DocumentWrite,
 | 
| +  Geolocation,
 | 
| +  Fullscreen,
 | 
| +  MidiFeature,
 | 
| +  Notifications,
 | 
| +  Payment,
 | 
| +  Push,
 | 
| +  SyncScript,
 | 
| +  SyncXHR,
 | 
| +  Usermedia,
 | 
| +  Vibrate,
 | 
| +  WebRTC,
 | 
| +  LAST_FEATURE = WebRTC
 | 
|  };
 | 
|  
 | 
| -using WebParsedFeaturePolicy = WebVector<WebFeaturePolicy::ParsedWhitelist>;
 | 
| +// Structure common to WebParsedFeature and WebParsedFeaturePolicyItem.
 | 
| +struct WebParsedWhitelist {
 | 
| +  WebParsedWhitelist() : matchesAllOrigins(false) {}
 | 
| +  bool matchesAllOrigins;
 | 
| +  WebVector<WebSecurityOrigin> origins;
 | 
| +};
 | 
| +
 | 
| +// Single item out of a declared header policy or iframe allow* attribute.
 | 
| +struct WebParsedFeaturePolicyDeclaration {
 | 
| +  WebString featureName;
 | 
| +  WebParsedWhitelist whitelist;
 | 
| +};
 | 
| +
 | 
| +// Used in Blink code to represent parsed headers. Used for IPC between renderer
 | 
| +// and browser.
 | 
| +using WebParsedFeaturePolicyHeader =
 | 
| +    WebVector<WebParsedFeaturePolicyDeclaration>;
 | 
| +
 | 
| +// Composed full policy for a document. Stored in SecurityContext for each
 | 
| +// document. This is essentially an opaque handle to an object in the embedder.
 | 
| +class WebFeaturePolicy {
 | 
| + public:
 | 
| +  virtual ~WebFeaturePolicy() {}
 | 
| +};
 | 
|  
 | 
|  }  // namespace blink
 | 
|  
 | 
| 
 |