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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_api_handler.h

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: Define a variable for safe_browsing_db_mobile_unittest_sources 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_api_handler.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_api_handler.h b/chrome/browser/safe_browsing/safe_browsing_api_handler.h
deleted file mode 100644
index 7f33db0c406d3b2e8d8dc9b8228a347ec9c0270d..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/safe_browsing_api_handler.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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.
-//
-// Glue to pass Safe Browsing API requests between
-// RemoteSafeBrowsingDatabaseManager and Java-based API to check URLs.
-
-#ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_API_HANDLER_H_
-#define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_API_HANDLER_H_
-
-#include <string>
-#include <vector>
-
-#include "base/callback.h"
-#include "chrome/browser/safe_browsing/safe_browsing_util.h"
-#include "url/gurl.h"
-
-namespace safe_browsing {
-
-class SafeBrowsingApiHandler {
- public:
- // Singleton interface.
- static void SetInstance(SafeBrowsingApiHandler* instance);
- static SafeBrowsingApiHandler* GetInstance();
-
- typedef base::Callback<void(SBThreatType sb_threat_type,
- const std::string& metadata)> URLCheckCallback;
-
- // Makes Native->Java call and invokes callback when check is done.
- virtual void StartURLCheck(const URLCheckCallback& callback,
- const GURL& url,
- const std::vector<SBThreatType>& threat_types) = 0;
-
- virtual ~SafeBrowsingApiHandler() {}
-
- private:
- // Pointer not owned.
- static SafeBrowsingApiHandler* instance_;
-};
-
-} // namespace safe_browsing
-
-#endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_API_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698