| 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 #ifndef CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const blink::WebServiceWorkerRequest& request, | 138 const blink::WebServiceWorkerRequest& request, |
| 139 const blink::WebServiceWorkerCache::QueryParams& query_params); | 139 const blink::WebServiceWorkerCache::QueryParams& query_params); |
| 140 void dispatchMatchAllForCache( | 140 void dispatchMatchAllForCache( |
| 141 int cache_id, | 141 int cache_id, |
| 142 blink::WebServiceWorkerCache::CacheWithResponsesCallbacks* callbacks, | 142 blink::WebServiceWorkerCache::CacheWithResponsesCallbacks* callbacks, |
| 143 const blink::WebServiceWorkerRequest& request, | 143 const blink::WebServiceWorkerRequest& request, |
| 144 const blink::WebServiceWorkerCache::QueryParams& query_params); | 144 const blink::WebServiceWorkerCache::QueryParams& query_params); |
| 145 void dispatchKeysForCache( | 145 void dispatchKeysForCache( |
| 146 int cache_id, | 146 int cache_id, |
| 147 blink::WebServiceWorkerCache::CacheWithRequestsCallbacks* callbacks, | 147 blink::WebServiceWorkerCache::CacheWithRequestsCallbacks* callbacks, |
| 148 const blink::WebServiceWorkerRequest* request, | 148 const blink::WebServiceWorkerRequest& request, |
| 149 const blink::WebServiceWorkerCache::QueryParams& query_params); | 149 const blink::WebServiceWorkerCache::QueryParams& query_params); |
| 150 void dispatchBatchForCache( | 150 void dispatchBatchForCache( |
| 151 int cache_id, | 151 int cache_id, |
| 152 blink::WebServiceWorkerCache::CacheBatchCallbacks* callbacks, | 152 blink::WebServiceWorkerCache::CacheBatchCallbacks* callbacks, |
| 153 const blink::WebVector<blink::WebServiceWorkerCache::BatchOperation>& | 153 const blink::WebVector<blink::WebServiceWorkerCache::BatchOperation>& |
| 154 batch_operations); | 154 batch_operations); |
| 155 | 155 |
| 156 void OnWebCacheDestruction(int cache_id); | 156 void OnWebCacheDestruction(int cache_id); |
| 157 | 157 |
| 158 private: | 158 private: |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 TimeMap cache_batch_times_; | 218 TimeMap cache_batch_times_; |
| 219 | 219 |
| 220 base::WeakPtrFactory<CacheStorageDispatcher> weak_factory_; | 220 base::WeakPtrFactory<CacheStorageDispatcher> weak_factory_; |
| 221 | 221 |
| 222 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcher); | 222 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcher); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 } // namespace content | 225 } // namespace content |
| 226 | 226 |
| 227 #endif // CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ | 227 #endif // CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ |
| OLD | NEW |