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

Side by Side Diff: webkit/appcache/appcache_storage_impl.cc

Issue 14307012: webkit: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/appcache_service_unittest.cc ('k') | webkit/appcache/appcache_update_job.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "webkit/appcache/appcache_storage_impl.h" 5 #include "webkit/appcache/appcache_storage_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 // AppCacheStorageImpl --------------------------------------------------- 1288 // AppCacheStorageImpl ---------------------------------------------------
1289 1289
1290 AppCacheStorageImpl::AppCacheStorageImpl(AppCacheService* service) 1290 AppCacheStorageImpl::AppCacheStorageImpl(AppCacheService* service)
1291 : AppCacheStorage(service), 1291 : AppCacheStorage(service),
1292 is_incognito_(false), 1292 is_incognito_(false),
1293 is_response_deletion_scheduled_(false), 1293 is_response_deletion_scheduled_(false),
1294 did_start_deleting_responses_(false), 1294 did_start_deleting_responses_(false),
1295 last_deletable_response_rowid_(0), 1295 last_deletable_response_rowid_(0),
1296 database_(NULL), 1296 database_(NULL),
1297 is_disabled_(false), 1297 is_disabled_(false),
1298 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { 1298 weak_factory_(this) {
1299 } 1299 }
1300 1300
1301 AppCacheStorageImpl::~AppCacheStorageImpl() { 1301 AppCacheStorageImpl::~AppCacheStorageImpl() {
1302 std::for_each(pending_quota_queries_.begin(), 1302 std::for_each(pending_quota_queries_.begin(),
1303 pending_quota_queries_.end(), 1303 pending_quota_queries_.end(),
1304 std::mem_fun(&DatabaseTask::CancelCompletion)); 1304 std::mem_fun(&DatabaseTask::CancelCompletion));
1305 std::for_each(scheduled_database_tasks_.begin(), 1305 std::for_each(scheduled_database_tasks_.begin(),
1306 scheduled_database_tasks_.end(), 1306 scheduled_database_tasks_.end(),
1307 std::mem_fun(&DatabaseTask::CancelCompletion)); 1307 std::mem_fun(&DatabaseTask::CancelCompletion));
1308 1308
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 if (!is_incognito_) { 1807 if (!is_incognito_) {
1808 VLOG(1) << "Deleting existing appcache data and starting over."; 1808 VLOG(1) << "Deleting existing appcache data and starting over.";
1809 db_thread_->PostTask( 1809 db_thread_->PostTask(
1810 FROM_HERE, base::Bind(base::IgnoreResult(&file_util::Delete), 1810 FROM_HERE, base::Bind(base::IgnoreResult(&file_util::Delete),
1811 cache_directory_, true)); 1811 cache_directory_, true));
1812 } 1812 }
1813 } 1813 }
1814 } 1814 }
1815 1815
1816 } // namespace appcache 1816 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_service_unittest.cc ('k') | webkit/appcache/appcache_update_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698