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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 NOTREACHED(); | 200 NOTREACHED(); |
201 return true; | 201 return true; |
202 } | 202 } |
203 | 203 |
204 bool RemoteSafeBrowsingDatabaseManager::MatchInclusionWhitelistUrl( | 204 bool RemoteSafeBrowsingDatabaseManager::MatchInclusionWhitelistUrl( |
205 const GURL& url) { | 205 const GURL& url) { |
206 NOTREACHED(); | 206 NOTREACHED(); |
207 return true; | 207 return true; |
208 } | 208 } |
209 | 209 |
| 210 bool RemoteSafeBrowsingDatabaseManager::MatchModuleWhitelistString( |
| 211 const std::string& str) { |
| 212 NOTREACHED(); |
| 213 return true; |
| 214 } |
| 215 |
210 bool RemoteSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() { | 216 bool RemoteSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() { |
211 NOTREACHED(); | 217 NOTREACHED(); |
212 return true; | 218 return true; |
213 } | 219 } |
214 | 220 |
215 bool RemoteSafeBrowsingDatabaseManager::IsCsdWhitelistKillSwitchOn() { | 221 bool RemoteSafeBrowsingDatabaseManager::IsCsdWhitelistKillSwitchOn() { |
216 NOTREACHED(); | 222 NOTREACHED(); |
217 return true; | 223 return true; |
218 } | 224 } |
219 | 225 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // |current_requests_|, so we make a copy first. | 283 // |current_requests_|, so we make a copy first. |
278 std::vector<ClientRequest*> to_callback(current_requests_); | 284 std::vector<ClientRequest*> to_callback(current_requests_); |
279 for (auto req : to_callback) { | 285 for (auto req : to_callback) { |
280 DVLOG(1) << "Stopping: Invoking unfinished req for URL " << req->url(); | 286 DVLOG(1) << "Stopping: Invoking unfinished req for URL " << req->url(); |
281 req->OnRequestDone(SB_THREAT_TYPE_SAFE, std::string()); | 287 req->OnRequestDone(SB_THREAT_TYPE_SAFE, std::string()); |
282 } | 288 } |
283 enabled_ = false; | 289 enabled_ = false; |
284 } | 290 } |
285 | 291 |
286 } // namespace safe_browsing | 292 } // namespace safe_browsing |
OLD | NEW |