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_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool has_cache, | 90 bool has_cache, |
91 CacheStorageError error); | 91 CacheStorageError error); |
92 void OnCacheStorageOpenCallback(int thread_id, | 92 void OnCacheStorageOpenCallback(int thread_id, |
93 int request_id, | 93 int request_id, |
94 const scoped_refptr<CacheStorageCache>& cache, | 94 const scoped_refptr<CacheStorageCache>& cache, |
95 CacheStorageError error); | 95 CacheStorageError error); |
96 void OnCacheStorageDeleteCallback(int thread_id, | 96 void OnCacheStorageDeleteCallback(int thread_id, |
97 int request_id, | 97 int request_id, |
98 bool deleted, | 98 bool deleted, |
99 CacheStorageError error); | 99 CacheStorageError error); |
100 void OnCacheStorageKeysCallback(int thread_id, | 100 void OnCacheStorageKeysCallback( |
101 int request_id, | 101 int thread_id, |
102 const std::vector<std::string>& strings, | 102 int request_id, |
103 CacheStorageError error); | 103 const std::vector<base::string16>& cache_names, |
| 104 CacheStorageError error); |
104 void OnCacheStorageMatchCallback( | 105 void OnCacheStorageMatchCallback( |
105 int thread_id, | 106 int thread_id, |
106 int request_id, | 107 int request_id, |
107 CacheStorageError error, | 108 CacheStorageError error, |
108 scoped_ptr<ServiceWorkerResponse> response, | 109 scoped_ptr<ServiceWorkerResponse> response, |
109 scoped_ptr<storage::BlobDataHandle> blob_data_handle); | 110 scoped_ptr<storage::BlobDataHandle> blob_data_handle); |
110 | 111 |
111 // Cache callbacks. | 112 // Cache callbacks. |
112 void OnCacheMatchCallback( | 113 void OnCacheMatchCallback( |
113 int thread_id, | 114 int thread_id, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 UUIDToBlobDataHandleList blob_handle_store_; | 163 UUIDToBlobDataHandleList blob_handle_store_; |
163 | 164 |
164 scoped_refptr<CacheStorageContextImpl> context_; | 165 scoped_refptr<CacheStorageContextImpl> context_; |
165 | 166 |
166 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost); | 167 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost); |
167 }; | 168 }; |
168 | 169 |
169 } // namespace content | 170 } // namespace content |
170 | 171 |
171 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ | 172 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ |
OLD | NEW |