| // Copyright 2018 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. | 
 |  | 
 | syntax = "proto2"; | 
 |  | 
 | option optimize_for = LITE_RUNTIME; | 
 |  | 
 | package content.proto; | 
 |  | 
 | // Proto equivalent of network::mojom::CookieMatchType. Values must match. | 
 | enum CookieMatchType { | 
 |   EQUALS = 0; | 
 |   STARTS_WITH = 1; | 
 | } | 
 |  | 
 | // A single cookie change subscription. | 
 | message CookieChangeSubscriptionProto { | 
 |   required string url = 1; | 
 |   optional string name = 2; | 
 |   optional CookieMatchType match_type = 3; | 
 | } | 
 |  | 
 | // All cookie change subscriptions belonging to a service worker registration. | 
 | message CookieChangeSubscriptionsProto { | 
 |   repeated CookieChangeSubscriptionProto subscriptions = 1; | 
 | } |