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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 ~CacheStorageDispatcherHost() override; | 44 ~CacheStorageDispatcherHost() override; |
45 | 45 |
46 // Called by Init() on IO thread. | 46 // Called by Init() on IO thread. |
47 void CreateCacheListener(CacheStorageContextImpl* context); | 47 void CreateCacheListener(CacheStorageContextImpl* context); |
48 | 48 |
49 // The message receiver functions for the CacheStorage API: | 49 // The message receiver functions for the CacheStorage API: |
50 void OnCacheStorageHas(int thread_id, | 50 void OnCacheStorageHas(int thread_id, |
51 int request_id, | 51 int request_id, |
52 const GURL& origin, | 52 const GURL& origin, |
53 const base::string16& cache_name); | 53 const std::string& cache_name); |
54 void OnCacheStorageOpen(int thread_id, | 54 void OnCacheStorageOpen(int thread_id, |
55 int request_id, | 55 int request_id, |
56 const GURL& origin, | 56 const GURL& origin, |
57 const base::string16& cache_name); | 57 const std::string& cache_name); |
58 void OnCacheStorageDelete(int thread_id, | 58 void OnCacheStorageDelete(int thread_id, |
59 int request_id, | 59 int request_id, |
60 const GURL& origin, | 60 const GURL& origin, |
61 const base::string16& cache_name); | 61 const std::string& cache_name); |
62 void OnCacheStorageKeys(int thread_id, int request_id, const GURL& origin); | 62 void OnCacheStorageKeys(int thread_id, int request_id, const GURL& origin); |
63 void OnCacheStorageMatch(int thread_id, | 63 void OnCacheStorageMatch(int thread_id, |
64 int request_id, | 64 int request_id, |
65 const GURL& origin, | 65 const GURL& origin, |
66 const ServiceWorkerFetchRequest& request, | 66 const ServiceWorkerFetchRequest& request, |
67 const CacheStorageCacheQueryParams& match_params); | 67 const CacheStorageCacheQueryParams& match_params); |
68 | 68 |
69 // The message receiver functions for the Cache API: | 69 // The message receiver functions for the Cache API: |
70 void OnCacheMatch(int thread_id, | 70 void OnCacheMatch(int thread_id, |
71 int request_id, | 71 int request_id, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 UUIDToBlobDataHandleList blob_handle_store_; | 162 UUIDToBlobDataHandleList blob_handle_store_; |
163 | 163 |
164 scoped_refptr<CacheStorageContextImpl> context_; | 164 scoped_refptr<CacheStorageContextImpl> context_; |
165 | 165 |
166 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost); | 166 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost); |
167 }; | 167 }; |
168 | 168 |
169 } // namespace content | 169 } // namespace content |
170 | 170 |
171 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ | 171 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ |
OLD | NEW |