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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_database.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/safe_browsing_database.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.h b/chrome/browser/safe_browsing/safe_browsing_database.h
index 22642a29898daebab9b435c218e3d79d7d61e9c6..54762564b5563acdc204e5a6a26bec4a8d8d4c93 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.h
+++ b/chrome/browser/safe_browsing/safe_browsing_database.h
@@ -21,11 +21,11 @@
#include "chrome/browser/safe_browsing/safe_browsing_store.h"
#include "components/safe_browsing_db/util.h"
+class GURL;
+
namespace safe_browsing {
-class PrefixSet;
-}
-class GURL;
+class PrefixSet;
class SafeBrowsingDatabase;
// Factory for creating SafeBrowsingDatabase. Tests implement this factory
@@ -433,8 +433,8 @@ class SafeBrowsingDatabaseNew : public SafeBrowsingDatabase {
// PrefixSets to speed up lookups for particularly large lists. The
// PrefixSet themselves are never modified, instead a new one is swapped in
// on update.
- scoped_ptr<const safe_browsing::PrefixSet> browse_prefix_set_;
- scoped_ptr<const safe_browsing::PrefixSet> unwanted_software_prefix_set_;
+ scoped_ptr<const PrefixSet> browse_prefix_set_;
+ scoped_ptr<const PrefixSet> unwanted_software_prefix_set_;
// Cache of gethash results for prefix stores. Entries should not be used if
// they are older than their expire_after field. Cached misses will have
@@ -591,10 +591,10 @@ class SafeBrowsingDatabaseNew : public SafeBrowsingDatabase {
// Helpers for InsertChunks().
void InsertAddChunk(SafeBrowsingStore* store,
- safe_browsing::ListType list_id,
+ ListType list_id,
const SBChunkData& chunk);
void InsertSubChunk(SafeBrowsingStore* store,
- safe_browsing::ListType list_id,
+ ListType list_id,
const SBChunkData& chunk);
// Updates the |store| and stores the result on disk under |store_filename|.
@@ -677,4 +677,6 @@ class SafeBrowsingDatabaseNew : public SafeBrowsingDatabase {
base::WeakPtrFactory<SafeBrowsingDatabaseNew> reset_factory_;
};
+} // namespace safe_browsing
+
#endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_

Powered by Google App Engine
This is Rietveld 408576698