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

Side by Side Diff: chrome/browser/safe_browsing/local_database_manager.cc

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "chrome/browser/safe_browsing/local_database_manager.h" 5 #include "chrome/browser/safe_browsing/local_database_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 const GURL& url, 747 const GURL& url,
748 const std::vector<SBThreatType>& expected_threats, 748 const std::vector<SBThreatType>& expected_threats,
749 const base::TimeTicks& start) 749 const base::TimeTicks& start)
750 : check_type(check_type), 750 : check_type(check_type),
751 client(client), 751 client(client),
752 url(url), 752 url(url),
753 expected_threats(expected_threats), 753 expected_threats(expected_threats),
754 start(start) { 754 start(start) {
755 } 755 }
756 756
757 LocalSafeBrowsingDatabaseManager::QueuedCheck::QueuedCheck(
758 const QueuedCheck& other) = default;
759
757 LocalSafeBrowsingDatabaseManager::QueuedCheck::~QueuedCheck() { 760 LocalSafeBrowsingDatabaseManager::QueuedCheck::~QueuedCheck() {
758 } 761 }
759 762
760 void LocalSafeBrowsingDatabaseManager::DoStopOnIOThread() { 763 void LocalSafeBrowsingDatabaseManager::DoStopOnIOThread() {
761 DCHECK_CURRENTLY_ON(BrowserThread::IO); 764 DCHECK_CURRENTLY_ON(BrowserThread::IO);
762 765
763 if (!enabled_) 766 if (!enabled_)
764 return; 767 return;
765 768
766 enabled_ = false; 769 enabled_ = false;
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback, 1281 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback,
1279 check->weak_ptr_factory_->GetWeakPtr(), check), 1282 check->weak_ptr_factory_->GetWeakPtr(), check),
1280 check_timeout_); 1283 check_timeout_);
1281 } 1284 }
1282 1285
1283 bool LocalSafeBrowsingDatabaseManager::download_protection_enabled() const { 1286 bool LocalSafeBrowsingDatabaseManager::download_protection_enabled() const {
1284 return enable_download_protection_; 1287 return enable_download_protection_;
1285 } 1288 }
1286 1289
1287 } // namespace safe_browsing 1290 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698