Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: content/browser/service_worker/service_worker_database.proto

Issue 2658603003: ServiceWorker: Enable UseCounter for ServiceWorkerGlobalScope (Closed)
Patch Set: ready to review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package content; 9 package content;
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 repeated string foreign_fetch_scope = 9; 43 repeated string foreign_fetch_scope = 9;
44 repeated string foreign_fetch_origin = 10; 44 repeated string foreign_fetch_origin = 10;
45 45
46 // If the registration data was created by old Chrome (< M56), 46 // If the registration data was created by old Chrome (< M56),
47 // |origin_trial_tokens| is not set. In this case, we have to start the 47 // |origin_trial_tokens| is not set. In this case, we have to start the
48 // Service Worker and load the main script resource in ServiceWorkerStorage 48 // Service Worker and load the main script resource in ServiceWorkerStorage
49 // to check the HTTP header. 49 // to check the HTTP header.
50 optional ServiceWorkerOriginTrialInfo origin_trial_tokens = 11; 50 optional ServiceWorkerOriginTrialInfo origin_trial_tokens = 11;
51 51
52 optional ServiceWorkerNavigationPreloadState navigation_preload_state = 12; 52 optional ServiceWorkerNavigationPreloadState navigation_preload_state = 12;
53
54 // The set of features that the worker has used. The values must be from
55 // blink::UseCounter::Feature enum.
falken 2017/02/08 05:01:53 This is the set of features the worker used up unt
nhiroki 2017/02/09 05:11:31 That's right. Updated.
56 repeated uint32 used_features = 13;
53 } 57 }
54 58
55 message ServiceWorkerResourceRecord { 59 message ServiceWorkerResourceRecord {
56 required int64 resource_id = 1; 60 required int64 resource_id = 1;
57 required string url = 2; 61 required string url = 2;
58 optional uint64 size_bytes = 3; 62 optional uint64 size_bytes = 3;
59 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698