| OLD | NEW |
| 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 "components/safe_browsing_db/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" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 NOTREACHED(); | 206 NOTREACHED(); |
| 207 return true; | 207 return true; |
| 208 } | 208 } |
| 209 | 209 |
| 210 bool RemoteSafeBrowsingDatabaseManager::MatchModuleWhitelistString( | 210 bool RemoteSafeBrowsingDatabaseManager::MatchModuleWhitelistString( |
| 211 const std::string& str) { | 211 const std::string& str) { |
| 212 NOTREACHED(); | 212 NOTREACHED(); |
| 213 return true; | 213 return true; |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool RemoteSafeBrowsingDatabaseManager::CheckResourceUrl(const GURL& url, |
| 217 Client* client) { |
| 218 NOTREACHED(); |
| 219 return true; |
| 220 } |
| 221 |
| 216 bool RemoteSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() { | 222 bool RemoteSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() { |
| 217 NOTREACHED(); | 223 NOTREACHED(); |
| 218 return true; | 224 return true; |
| 219 } | 225 } |
| 220 | 226 |
| 221 bool RemoteSafeBrowsingDatabaseManager::IsCsdWhitelistKillSwitchOn() { | 227 bool RemoteSafeBrowsingDatabaseManager::IsCsdWhitelistKillSwitchOn() { |
| 222 NOTREACHED(); | 228 NOTREACHED(); |
| 223 return true; | 229 return true; |
| 224 } | 230 } |
| 225 | 231 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // |current_requests_|, so we make a copy first. | 289 // |current_requests_|, so we make a copy first. |
| 284 std::vector<ClientRequest*> to_callback(current_requests_); | 290 std::vector<ClientRequest*> to_callback(current_requests_); |
| 285 for (auto req : to_callback) { | 291 for (auto req : to_callback) { |
| 286 DVLOG(1) << "Stopping: Invoking unfinished req for URL " << req->url(); | 292 DVLOG(1) << "Stopping: Invoking unfinished req for URL " << req->url(); |
| 287 req->OnRequestDone(SB_THREAT_TYPE_SAFE, std::string()); | 293 req->OnRequestDone(SB_THREAT_TYPE_SAFE, std::string()); |
| 288 } | 294 } |
| 289 enabled_ = false; | 295 enabled_ = false; |
| 290 } | 296 } |
| 291 | 297 |
| 292 } // namespace safe_browsing | 298 } // namespace safe_browsing |
| OLD | NEW |