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

Unified Diff: chrome/browser/safe_browsing/test_database_manager.cc

Issue 1110723002: Split to SafeBrowsingDatabaseManager into Local* and Remote*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review. Tweak comments and list initializer. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/test_database_manager.cc
diff --git a/chrome/browser/safe_browsing/test_database_manager.cc b/chrome/browser/safe_browsing/test_database_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..648451eade0bb932f4d77d9369b823d479b712a3
--- /dev/null
+++ b/chrome/browser/safe_browsing/test_database_manager.cc
@@ -0,0 +1,90 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/safe_browsing/test_database_manager.h"
+
+#include <set>
+#include <string>
+#include <vector>
+
+#include "base/logging.h"
+
+bool TestSafeBrowsingDatabaseManager::CanCheckUrl(const GURL& url) const {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool TestSafeBrowsingDatabaseManager::download_protection_enabled() const {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool TestSafeBrowsingDatabaseManager::CheckBrowseUrl(const GURL& url,
+ Client* client) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::CheckDownloadUrl(
+ const std::vector<GURL>& url_chain,
+ Client* client) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::CheckExtensionIDs(
+ const std::set<std::string>& extension_ids,
+ Client* client) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::MatchCsdWhitelistUrl(const GURL& url) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::MatchMalwareIP(
+ const std::string& ip_address) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::MatchDownloadWhitelistUrl(
+ const GURL& url) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::MatchDownloadWhitelistString(
+ const std::string& str) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::MatchInclusionWhitelistUrl(
+ const GURL& url) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+bool TestSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool TestSafeBrowsingDatabaseManager::IsCsdWhitelistKillSwitchOn() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+void TestSafeBrowsingDatabaseManager::CancelCheck(Client* client) {
+ NOTIMPLEMENTED();
+}
+
+void TestSafeBrowsingDatabaseManager::StartOnIOThread() {
+}
+
+void TestSafeBrowsingDatabaseManager::StopOnIOThread(bool shutdown) {
+}

Powered by Google App Engine
This is Rietveld 408576698