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

Side by Side Diff: content/browser/service_worker/service_worker_cache_storage.h

Issue 504233003: Change the ServiceWorkerCacheStorage's loader from a ref ptr to scoped. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache_storage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // The map of cache names to their integer ids. 153 // The map of cache names to their integer ids.
154 NameMap name_map_; 154 NameMap name_map_;
155 155
156 // The file path for this CacheStorage. 156 // The file path for this CacheStorage.
157 base::FilePath origin_path_; 157 base::FilePath origin_path_;
158 158
159 // The TaskRunner to run file IO on. 159 // The TaskRunner to run file IO on.
160 scoped_refptr<base::SequencedTaskRunner> cache_task_runner_; 160 scoped_refptr<base::SequencedTaskRunner> cache_task_runner_;
161 161
162 // Performs backend specific operations (memory vs disk). 162 // Performs backend specific operations (memory vs disk).
163 scoped_refptr<CacheLoader> cache_loader_; 163 scoped_ptr<CacheLoader> cache_loader_;
164 164
165 base::WeakPtrFactory<ServiceWorkerCacheStorage> weak_factory_; 165 base::WeakPtrFactory<ServiceWorkerCacheStorage> weak_factory_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCacheStorage); 167 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCacheStorage);
168 }; 168 };
169 169
170 } // namespace content 170 } // namespace content
171 171
172 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ 172 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698