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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_util.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_util.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.h b/chrome/browser/safe_browsing/safe_browsing_util.h
index 9cbb3cd97583c7f99754b8bf56911ccc9e52ff89..c4d181250101da6ceac50316139039b114696daf 100644
--- a/chrome/browser/safe_browsing/safe_browsing_util.h
+++ b/chrome/browser/safe_browsing/safe_browsing_util.h
@@ -19,8 +19,8 @@
#include "components/safe_browsing_db/util.h"
namespace safe_browsing {
+
class ChunkData;
-};
// Container for holding a chunk URL and the list it belongs to.
struct ChunkUrl {
@@ -37,7 +37,7 @@ class SBChunkData {
// Create with manufactured data, for testing only.
// TODO(shess): Right now the test code calling this is in an anonymous
// namespace. Figure out how to shift this into private:.
- explicit SBChunkData(safe_browsing::ChunkData* chunk_data);
+ explicit SBChunkData(ChunkData* chunk_data);
// Read serialized ChunkData, returning true if the parse suceeded.
bool ParseFrom(const unsigned char* data, size_t length);
@@ -58,7 +58,7 @@ class SBChunkData {
private:
// Protocol buffer sent from server.
- scoped_ptr<safe_browsing::ChunkData> chunk_data_;
+ scoped_ptr<ChunkData> chunk_data_;
DISALLOW_COPY_AND_ASSIGN(SBChunkData);
};
@@ -82,4 +82,6 @@ struct SBChunkDelete {
std::vector<ChunkRange> chunk_del;
};
+} // namespace safe_browsing
+
#endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_test.cc ('k') | chrome/browser/safe_browsing/safe_browsing_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698