| 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> |
| 11 #include <map> | 11 #include <map> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "content/browser/cache_storage/cache_storage.h" | 17 #include "content/browser/cache_storage/cache_storage.h" |
| 18 #include "content/browser/cache_storage/cache_storage_index.h" |
| 18 #include "content/public/browser/browser_message_filter.h" | 19 #include "content/public/browser/browser_message_filter.h" |
| 19 | 20 |
| 20 namespace url { | 21 namespace url { |
| 21 class Origin; | 22 class Origin; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace content { | 25 namespace content { |
| 25 | 26 |
| 26 class CacheStorageContextImpl; | 27 class CacheStorageContextImpl; |
| 27 | 28 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 int thread_id, | 105 int thread_id, |
| 105 int request_id, | 106 int request_id, |
| 106 std::unique_ptr<CacheStorageCacheHandle> cache_handle, | 107 std::unique_ptr<CacheStorageCacheHandle> cache_handle, |
| 107 CacheStorageError error); | 108 CacheStorageError error); |
| 108 void OnCacheStorageDeleteCallback(int thread_id, | 109 void OnCacheStorageDeleteCallback(int thread_id, |
| 109 int request_id, | 110 int request_id, |
| 110 bool deleted, | 111 bool deleted, |
| 111 CacheStorageError error); | 112 CacheStorageError error); |
| 112 void OnCacheStorageKeysCallback(int thread_id, | 113 void OnCacheStorageKeysCallback(int thread_id, |
| 113 int request_id, | 114 int request_id, |
| 114 const std::vector<std::string>& strings); | 115 const CacheStorageIndex& cache_index); |
| 115 void OnCacheStorageMatchCallback( | 116 void OnCacheStorageMatchCallback( |
| 116 int thread_id, | 117 int thread_id, |
| 117 int request_id, | 118 int request_id, |
| 118 CacheStorageError error, | 119 CacheStorageError error, |
| 119 std::unique_ptr<ServiceWorkerResponse> response, | 120 std::unique_ptr<ServiceWorkerResponse> response, |
| 120 std::unique_ptr<storage::BlobDataHandle> blob_data_handle); | 121 std::unique_ptr<storage::BlobDataHandle> blob_data_handle); |
| 121 | 122 |
| 122 // Cache callbacks. | 123 // Cache callbacks. |
| 123 void OnCacheMatchCallback( | 124 void OnCacheMatchCallback( |
| 124 int thread_id, | 125 int thread_id, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 UUIDToBlobDataHandleList blob_handle_store_; | 176 UUIDToBlobDataHandleList blob_handle_store_; |
| 176 | 177 |
| 177 scoped_refptr<CacheStorageContextImpl> context_; | 178 scoped_refptr<CacheStorageContextImpl> context_; |
| 178 | 179 |
| 179 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost); | 180 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost); |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 } // namespace content | 183 } // namespace content |
| 183 | 184 |
| 184 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ | 185 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ |
| OLD | NEW |