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

Unified Diff: components/safe_browsing_db/safe_browsing_api_handler.h

Issue 1624723002: Move remote_db_manager into the safe_browsing_db component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fetch, rebase, format 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: components/safe_browsing_db/safe_browsing_api_handler.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_api_handler.h b/components/safe_browsing_db/safe_browsing_api_handler.h
similarity index 75%
rename from chrome/browser/safe_browsing/safe_browsing_api_handler.h
rename to components/safe_browsing_db/safe_browsing_api_handler.h
index 7f33db0c406d3b2e8d8dc9b8228a347ec9c0270d..0ffdd6b5b6c0c51e88337595c51fd8004c8f2755 100644
--- a/chrome/browser/safe_browsing/safe_browsing_api_handler.h
+++ b/components/safe_browsing_db/safe_browsing_api_handler.h
@@ -5,14 +5,14 @@
// 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_
+#ifndef COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_API_HANDLER_H_
+#define COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_API_HANDLER_H_
#include <string>
#include <vector>
#include "base/callback.h"
-#include "chrome/browser/safe_browsing/safe_browsing_util.h"
+#include "components/safe_browsing_db/util.h"
#include "url/gurl.h"
namespace safe_browsing {
@@ -24,7 +24,8 @@ class SafeBrowsingApiHandler {
static SafeBrowsingApiHandler* GetInstance();
typedef base::Callback<void(SBThreatType sb_threat_type,
- const std::string& metadata)> URLCheckCallback;
+ const std::string& metadata)>
+ URLCheckCallback;
// Makes Native->Java call and invokes callback when check is done.
virtual void StartURLCheck(const URLCheckCallback& callback,
@@ -40,4 +41,4 @@ class SafeBrowsingApiHandler {
} // namespace safe_browsing
-#endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_API_HANDLER_H_
+#endif // COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_API_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698