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

Side by Side Diff: components/safe_browsing_db/remote_database_manager.cc

Issue 1579403002: Move remote_db_manager into the safe_browsing_db component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a gn dep on safe_browsing_db_mobile Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/remote_database_manager.h" 5 #include "components/safe_browsing_db/remote_database_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/timer/elapsed_timer.h" 12 #include "base/timer/elapsed_timer.h"
13 #include "chrome/browser/safe_browsing/safe_browsing_api_handler.h" 13 #include "components/safe_browsing_db/safe_browsing_api_handler.h"
14 #include "components/variations/variations_associated_data.h" 14 #include "components/variations/variations_associated_data.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace { 19 namespace {
20 20
21 // Android field trial for controlling types_to_check. 21 // Android field trial for controlling types_to_check.
22 const char kAndroidFieldExperiment[] = "SafeBrowsingAndroid"; 22 const char kAndroidFieldExperiment[] = "SafeBrowsingAndroid";
23 const char kAndroidTypesToCheckParam[] = "types_to_check"; 23 const char kAndroidTypesToCheckParam[] = "types_to_check";
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // |current_requests_|, so we make a copy first. 276 // |current_requests_|, so we make a copy first.
277 std::vector<ClientRequest*> to_callback(current_requests_); 277 std::vector<ClientRequest*> to_callback(current_requests_);
278 for (auto req : to_callback) { 278 for (auto req : to_callback) {
279 DVLOG(1) << "Stopping: Invoking unfinished req for URL " << req->url(); 279 DVLOG(1) << "Stopping: Invoking unfinished req for URL " << req->url();
280 req->OnRequestDone(SB_THREAT_TYPE_SAFE, std::string()); 280 req->OnRequestDone(SB_THREAT_TYPE_SAFE, std::string());
281 } 281 }
282 enabled_ = false; 282 enabled_ = false;
283 } 283 }
284 284
285 } // namespace safe_browsing 285 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698