OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ | 5 #ifndef CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ |
6 #define CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ | 6 #define CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/strings/nullable_string16.h" | 11 #include "base/strings/nullable_string16.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/service_worker/service_worker_types.h" | 13 #include "content/common/service_worker/service_worker_types.h" |
14 | 14 |
15 // This file is to have common definitions that are to be shared by | 15 // This file is to have common definitions that are to be shared by |
16 // browser and child process. | 16 // browser and child process. |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 // Controls how requests are matched in the Cache API. | 20 // Controls how requests are matched in the Cache API. |
21 struct CONTENT_EXPORT CacheStorageCacheQueryParams { | 21 struct CONTENT_EXPORT CacheStorageCacheQueryParams { |
22 CacheStorageCacheQueryParams(); | 22 CacheStorageCacheQueryParams(); |
23 | 23 |
24 bool ignore_search; | 24 bool ignore_search = false; |
25 bool ignore_method; | 25 bool ignore_method = false; |
26 bool ignore_vary; | 26 bool ignore_vary = false; |
27 base::NullableString16 cache_name; | 27 base::NullableString16 cache_name; |
28 }; | 28 }; |
29 | 29 |
30 // The type of a single batch operation in the Cache API. | 30 // The type of a single batch operation in the Cache API. |
31 enum CacheStorageCacheOperationType { | 31 enum CacheStorageCacheOperationType { |
32 CACHE_STORAGE_CACHE_OPERATION_TYPE_UNDEFINED, | 32 CACHE_STORAGE_CACHE_OPERATION_TYPE_UNDEFINED, |
33 CACHE_STORAGE_CACHE_OPERATION_TYPE_PUT, | 33 CACHE_STORAGE_CACHE_OPERATION_TYPE_PUT, |
34 CACHE_STORAGE_CACHE_OPERATION_TYPE_DELETE, | 34 CACHE_STORAGE_CACHE_OPERATION_TYPE_DELETE, |
35 CACHE_STORAGE_CACHE_OPERATION_TYPE_LAST = | 35 CACHE_STORAGE_CACHE_OPERATION_TYPE_LAST = |
36 CACHE_STORAGE_CACHE_OPERATION_TYPE_DELETE | 36 CACHE_STORAGE_CACHE_OPERATION_TYPE_DELETE |
(...skipping 18 matching lines...) Expand all Loading... |
55 CACHE_STORAGE_ERROR_STORAGE, | 55 CACHE_STORAGE_ERROR_STORAGE, |
56 CACHE_STORAGE_ERROR_NOT_FOUND, | 56 CACHE_STORAGE_ERROR_NOT_FOUND, |
57 CACHE_STORAGE_ERROR_QUOTA_EXCEEDED, | 57 CACHE_STORAGE_ERROR_QUOTA_EXCEEDED, |
58 CACHE_STORAGE_ERROR_CACHE_NAME_NOT_FOUND, | 58 CACHE_STORAGE_ERROR_CACHE_NAME_NOT_FOUND, |
59 CACHE_STORAGE_ERROR_LAST = CACHE_STORAGE_ERROR_CACHE_NAME_NOT_FOUND | 59 CACHE_STORAGE_ERROR_LAST = CACHE_STORAGE_ERROR_CACHE_NAME_NOT_FOUND |
60 }; | 60 }; |
61 | 61 |
62 } // namespace content | 62 } // namespace content |
63 | 63 |
64 #endif // CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ | 64 #endif // CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_ |
OLD | NEW |