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

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

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month 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/local_database_manager.h
diff --git a/chrome/browser/safe_browsing/local_database_manager.h b/chrome/browser/safe_browsing/local_database_manager.h
index a848f1a6b519bf5cf9ca6787618ba8457b338d53..4de4dffa9eb10c563212950b6a09624b1f94811b 100644
--- a/chrome/browser/safe_browsing/local_database_manager.h
+++ b/chrome/browser/safe_browsing/local_database_manager.h
@@ -27,18 +27,17 @@
#include "components/safe_browsing_db/util.h"
#include "url/gurl.h"
-class SafeBrowsingService;
-class SafeBrowsingDatabase;
-
namespace net {
class URLRequestContext;
class URLRequestContextGetter;
}
namespace safe_browsing {
+
+class SafeBrowsingService;
+class SafeBrowsingDatabase;
class ClientSideDetectionService;
class DownloadProtectionService;
-}
// Implemetation that manages a local database on disk.
//
@@ -57,7 +56,7 @@ class LocalSafeBrowsingDatabaseManager
SafeBrowsingCheck(const std::vector<GURL>& urls,
const std::vector<SBFullHash>& full_hashes,
Client* client,
- safe_browsing::ListType check_type,
+ ListType check_type,
const std::vector<SBThreatType>& expected_threats);
~SafeBrowsingCheck();
@@ -74,7 +73,7 @@ class LocalSafeBrowsingDatabaseManager
bool is_extended_reporting;
bool need_get_hash;
base::TimeTicks start; // When check was sent to SB service.
- safe_browsing::ListType check_type; // See comment in constructor.
+ ListType check_type; // See comment in constructor.
std::vector<SBThreatType> expected_threats;
std::vector<SBPrefix> prefix_hits;
std::vector<SBFullHashResult> cache_hits;
@@ -154,13 +153,13 @@ class LocalSafeBrowsingDatabaseManager
// Clients that we've queued up for checking later once the database is ready.
struct QueuedCheck {
- QueuedCheck(const safe_browsing::ListType check_type,
+ QueuedCheck(const ListType check_type,
Client* client,
const GURL& url,
const std::vector<SBThreatType>& expected_threats,
const base::TimeTicks& start);
~QueuedCheck();
- safe_browsing::ListType check_type;
+ ListType check_type;
Client* client;
GURL url;
std::vector<SBThreatType> expected_threats;
@@ -362,4 +361,6 @@ class LocalSafeBrowsingDatabaseManager
DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager);
}; // class LocalSafeBrowsingDatabaseManager
+} // namespace safe_browsing
+
#endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698