Chromium Code Reviews| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | 53 |
| 54 // The set of features that the worker used up until the time installation | 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. | 55 // completed. The values must be from blink::UseCounter::Feature enum. |
| 56 repeated uint32 used_features = 13; | 56 repeated uint32 used_features = 13; |
| 57 | |
| 58 optional uint32 update_via_cache = 14; | |
|
nhiroki
2017/06/21 14:08:35
How about using Enum?
https://developers.google.co
yuryu
2017/07/20 10:15:12
Done.
| |
| 57 } | 59 } |
| 58 | 60 |
| 59 message ServiceWorkerResourceRecord { | 61 message ServiceWorkerResourceRecord { |
| 60 required int64 resource_id = 1; | 62 required int64 resource_id = 1; |
| 61 required string url = 2; | 63 required string url = 2; |
| 62 optional uint64 size_bytes = 3; | 64 optional uint64 size_bytes = 3; |
| 63 } | 65 } |
| OLD | NEW |