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

Side by Side Diff: content/browser/appcache/appcache_service_impl.h

Issue 2435863004: Remove stl_util's deletion function use from content/. (Closed)
Patch Set: minus service worker Created 4 years, 2 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
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_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <set>
13 12
14 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 14 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
17 #include "base/observer_list.h" 16 #include "base/observer_list.h"
18 #include "base/time/time.h" 17 #include "base/time/time.h"
19 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
20 #include "content/common/appcache_interfaces.h" 19 #include "content/common/appcache_interfaces.h"
21 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
22 #include "content/public/browser/appcache_service.h" 21 #include "content/public/browser/appcache_service.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 friend class content::AppCacheStorageImplTest; 187 friend class content::AppCacheStorageImplTest;
189 FRIEND_TEST_ALL_PREFIXES(content::AppCacheServiceImplTest, 188 FRIEND_TEST_ALL_PREFIXES(content::AppCacheServiceImplTest,
190 ScheduleReinitialize); 189 ScheduleReinitialize);
191 190
192 class AsyncHelper; 191 class AsyncHelper;
193 class DeleteHelper; 192 class DeleteHelper;
194 class DeleteOriginHelper; 193 class DeleteOriginHelper;
195 class GetInfoHelper; 194 class GetInfoHelper;
196 class CheckResponseHelper; 195 class CheckResponseHelper;
197 196
198 typedef std::set<AsyncHelper*> PendingAsyncHelpers; 197 using PendingAsyncHelpers =
199 typedef std::map<int, AppCacheBackendImpl*> BackendMap; 198 std::map<AsyncHelper*, std::unique_ptr<AsyncHelper>>;
199 using BackendMap = std::map<int, AppCacheBackendImpl*>;
200 200
201 void Reinitialize(); 201 void Reinitialize();
202 202
203 base::FilePath cache_directory_; 203 base::FilePath cache_directory_;
204 scoped_refptr<base::SingleThreadTaskRunner> db_thread_; 204 scoped_refptr<base::SingleThreadTaskRunner> db_thread_;
205 scoped_refptr<base::SingleThreadTaskRunner> cache_thread_; 205 scoped_refptr<base::SingleThreadTaskRunner> cache_thread_;
206 AppCachePolicy* appcache_policy_; 206 AppCachePolicy* appcache_policy_;
207 AppCacheQuotaClient* quota_client_; 207 AppCacheQuotaClient* quota_client_;
208 AppCacheExecutableHandlerFactory* handler_factory_; 208 AppCacheExecutableHandlerFactory* handler_factory_;
209 std::unique_ptr<AppCacheStorage> storage_; 209 std::unique_ptr<AppCacheStorage> storage_;
(...skipping 12 matching lines...) Expand all
222 222
223 private: 223 private:
224 base::WeakPtrFactory<AppCacheServiceImpl> weak_factory_; 224 base::WeakPtrFactory<AppCacheServiceImpl> weak_factory_;
225 225
226 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl); 226 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl);
227 }; 227 };
228 228
229 } // namespace content 229 } // namespace content
230 230
231 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 231 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_backend_impl.cc ('k') | content/browser/appcache/appcache_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698