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

Side by Side Diff: content/browser/appcache/appcache_storage_impl.cc

Issue 1782963002: Remove std::mem_fun uses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 (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 "content/browser/appcache/appcache_storage_impl.h" 5 #include "content/browser/appcache/appcache_storage_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <functional> 10 #include <functional>
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 is_incognito_(false), 1412 is_incognito_(false),
1413 is_response_deletion_scheduled_(false), 1413 is_response_deletion_scheduled_(false),
1414 did_start_deleting_responses_(false), 1414 did_start_deleting_responses_(false),
1415 last_deletable_response_rowid_(0), 1415 last_deletable_response_rowid_(0),
1416 database_(NULL), 1416 database_(NULL),
1417 is_disabled_(false), 1417 is_disabled_(false),
1418 weak_factory_(this) { 1418 weak_factory_(this) {
1419 } 1419 }
1420 1420
1421 AppCacheStorageImpl::~AppCacheStorageImpl() { 1421 AppCacheStorageImpl::~AppCacheStorageImpl() {
1422 std::for_each(pending_quota_queries_.begin(), 1422 for (auto* task : pending_quota_queries_)
1423 pending_quota_queries_.end(), 1423 task->CancelCompletion();
1424 std::mem_fun(&DatabaseTask::CancelCompletion)); 1424 for (auto* task : scheduled_database_tasks_)
1425 std::for_each(scheduled_database_tasks_.begin(), 1425 task->CancelCompletion();
1426 scheduled_database_tasks_.end(),
1427 std::mem_fun(&DatabaseTask::CancelCompletion));
1428 1426
1429 if (database_ && 1427 if (database_ &&
1430 !db_thread_->PostTask( 1428 !db_thread_->PostTask(
1431 FROM_HERE, 1429 FROM_HERE,
1432 base::Bind(&ClearSessionOnlyOrigins, 1430 base::Bind(&ClearSessionOnlyOrigins,
1433 database_, 1431 database_,
1434 make_scoped_refptr(service_->special_storage_policy()), 1432 make_scoped_refptr(service_->special_storage_policy()),
1435 service()->force_keep_session_state()))) { 1433 service()->force_keep_session_state()))) {
1436 delete database_; 1434 delete database_;
1437 } 1435 }
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1987 1985
1988 void AppCacheStorageImpl::OnLazyCommitTimer() { 1986 void AppCacheStorageImpl::OnLazyCommitTimer() {
1989 lazy_commit_timer_.Stop(); 1987 lazy_commit_timer_.Stop();
1990 if (is_disabled()) 1988 if (is_disabled())
1991 return; 1989 return;
1992 scoped_refptr<DatabaseTask> task(new CommitLastAccessTimesTask(this)); 1990 scoped_refptr<DatabaseTask> task(new CommitLastAccessTimesTask(this));
1993 task->Schedule(); 1991 task->Schedule();
1994 } 1992 }
1995 1993
1996 } // namespace content 1994 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_service_impl.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698