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

Side by Side Diff: content/browser/cache_storage/cache_storage.proto

Issue 1039763002: Cache Storage: Move files to content/*/cache_storage, rename classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 5 years, 8 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
11 message ServiceWorkerCacheStorageIndex { 11 message CacheStorageIndex {
12 message Cache { 12 message Cache { required string name = 1; }
13 required string name = 1;
14 }
15 repeated Cache cache = 1; 13 repeated Cache cache = 1;
16 optional string origin = 2; 14 optional string origin = 2;
17 } 15 }
18 16
19 message ServiceWorkerCacheHeaderMap { 17 message CacheHeaderMap {
20 required string name = 1; 18 required string name = 1;
21 required string value = 2; 19 required string value = 2;
22 } 20 }
23 21
24 message ServiceWorkerCacheRequest { 22 message CacheRequest {
25 required string method = 1; 23 required string method = 1;
26 repeated ServiceWorkerCacheHeaderMap headers = 2; 24 repeated CacheHeaderMap headers = 2;
27 } 25 }
28 26
29 message ServiceWorkerCacheResponse { 27 message CacheResponse {
30 enum ResponseType { 28 enum ResponseType {
31 BASIC_TYPE = 0; 29 BASIC_TYPE = 0;
32 CORS_TYPE = 1; 30 CORS_TYPE = 1;
33 DEFAULT_TYPE = 2; 31 DEFAULT_TYPE = 2;
34 ERROR_TYPE = 3; 32 ERROR_TYPE = 3;
35 OPAQUE_TYPE = 4; 33 OPAQUE_TYPE = 4;
36 } 34 }
37 35
38 required int32 status_code = 1; 36 required int32 status_code = 1;
39 required string status_text = 2; 37 required string status_text = 2;
40 required ResponseType response_type = 3; 38 required ResponseType response_type = 3;
41 repeated ServiceWorkerCacheHeaderMap headers = 4; 39 repeated CacheHeaderMap headers = 4;
42 optional string url = 5; 40 optional string url = 5;
43 } 41 }
44 42
45 message ServiceWorkerCacheMetadata { 43 message CacheMetadata {
46 required ServiceWorkerCacheRequest request = 1; 44 required CacheRequest request = 1;
47 required ServiceWorkerCacheResponse response = 2; 45 required CacheResponse response = 2;
48 } 46 }
OLDNEW
« no previous file with comments | « content/browser/cache_storage/cache_storage.cc ('k') | content/browser/cache_storage/cache_storage_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698