1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27

content / browser / cookie_store / cookie_change_subscriptions.proto [blame]

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto3";

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 {
  string url = 1;
  string name = 2;
  CookieMatchType match_type = 3;
}

// All cookie change subscriptions belonging to a service worker registration.
message CookieChangeSubscriptionsProto {
  repeated CookieChangeSubscriptionProto subscriptions = 1;
}