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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // ServiceWorkerScriptContext calls our OnMessageReceived directly. | 46 // ServiceWorkerScriptContext calls our OnMessageReceived directly. |
47 bool OnMessageReceived(const IPC::Message& message); | 47 bool OnMessageReceived(const IPC::Message& message); |
48 | 48 |
49 // Message handlers for CacheStorage messages from the browser process. | 49 // Message handlers for CacheStorage messages from the browser process. |
50 void OnCacheStorageHasSuccess(int thread_id, int request_id); | 50 void OnCacheStorageHasSuccess(int thread_id, int request_id); |
51 void OnCacheStorageOpenSuccess(int thread_id, int request_id, int cache_id); | 51 void OnCacheStorageOpenSuccess(int thread_id, int request_id, int cache_id); |
52 void OnCacheStorageDeleteSuccess(int thread_id, int request_id); | 52 void OnCacheStorageDeleteSuccess(int thread_id, int request_id); |
53 void OnCacheStorageKeysSuccess(int thread_id, | 53 void OnCacheStorageKeysSuccess(int thread_id, |
54 int request_id, | 54 int request_id, |
55 const std::vector<base::string16>& keys); | 55 const std::vector<std::string>& keys); |
56 void OnCacheStorageMatchSuccess(int thread_id, | 56 void OnCacheStorageMatchSuccess(int thread_id, |
57 int request_id, | 57 int request_id, |
58 const ServiceWorkerResponse& response); | 58 const ServiceWorkerResponse& response); |
59 | 59 |
60 void OnCacheStorageHasError(int thread_id, | 60 void OnCacheStorageHasError(int thread_id, |
61 int request_id, | 61 int request_id, |
62 blink::WebServiceWorkerCacheError reason); | 62 blink::WebServiceWorkerCacheError reason); |
63 void OnCacheStorageOpenError(int thread_id, | 63 void OnCacheStorageOpenError(int thread_id, |
64 int request_id, | 64 int request_id, |
65 blink::WebServiceWorkerCacheError reason); | 65 blink::WebServiceWorkerCacheError reason); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 TimeMap cache_batch_times_; | 214 TimeMap cache_batch_times_; |
215 | 215 |
216 base::WeakPtrFactory<CacheStorageDispatcher> weak_factory_; | 216 base::WeakPtrFactory<CacheStorageDispatcher> weak_factory_; |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcher); | 218 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcher); |
219 }; | 219 }; |
220 | 220 |
221 } // namespace content | 221 } // namespace content |
222 | 222 |
223 #endif // CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ | 223 #endif // CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ |
OLD | NEW |