Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Side by Side Diff: content/browser/cache_storage/cache_storage_cache.h

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/spellcheck/renderer/spellcheck_provider.h ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698