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_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ | 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ |
6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ | 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 struct QueryCacheContext; | 178 struct QueryCacheContext; |
179 struct QueryCacheResult; | 179 struct QueryCacheResult; |
180 | 180 |
181 using QueryCacheResults = std::vector<QueryCacheResult>; | 181 using QueryCacheResults = std::vector<QueryCacheResult>; |
182 using QueryCacheCallback = | 182 using QueryCacheCallback = |
183 base::Callback<void(CacheStorageError, | 183 base::Callback<void(CacheStorageError, |
184 std::unique_ptr<QueryCacheResults>)>; | 184 std::unique_ptr<QueryCacheResults>)>; |
185 using Entries = std::vector<disk_cache::Entry*>; | 185 using Entries = std::vector<disk_cache::Entry*>; |
186 using ScopedBackendPtr = std::unique_ptr<disk_cache::Backend>; | 186 using ScopedBackendPtr = std::unique_ptr<disk_cache::Backend>; |
187 using BlobToDiskCacheIDMap = | 187 using BlobToDiskCacheIDMap = |
188 IDMap<CacheStorageBlobToDiskCache, IDMapOwnPointer>; | 188 IDMap<std::unique_ptr<CacheStorageBlobToDiskCache>>; |
189 using OpenAllEntriesCallback = | 189 using OpenAllEntriesCallback = |
190 base::Callback<void(std::unique_ptr<OpenAllEntriesContext>, | 190 base::Callback<void(std::unique_ptr<OpenAllEntriesContext>, |
191 CacheStorageError)>; | 191 CacheStorageError)>; |
192 | 192 |
193 CacheStorageCache( | 193 CacheStorageCache( |
194 const GURL& origin, | 194 const GURL& origin, |
195 const std::string& cache_name, | 195 const std::string& cache_name, |
196 const base::FilePath& path, | 196 const base::FilePath& path, |
197 CacheStorage* cache_storage, | 197 CacheStorage* cache_storage, |
198 scoped_refptr<net::URLRequestContextGetter> request_context_getter, | 198 scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 bool memory_only_; | 397 bool memory_only_; |
398 | 398 |
399 base::WeakPtrFactory<CacheStorageCache> weak_ptr_factory_; | 399 base::WeakPtrFactory<CacheStorageCache> weak_ptr_factory_; |
400 | 400 |
401 DISALLOW_COPY_AND_ASSIGN(CacheStorageCache); | 401 DISALLOW_COPY_AND_ASSIGN(CacheStorageCache); |
402 }; | 402 }; |
403 | 403 |
404 } // namespace content | 404 } // namespace content |
405 | 405 |
406 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ | 406 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ |
OLD | NEW |