OLD | NEW |
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 Loading... |
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 used up until the time installation |
| 55 // completed. The values must be from blink::UseCounter::Feature enum. |
| 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 } |
OLD | NEW |