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

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

Issue 11419041: Add tests for redirect responses from SafeBrowsingProtocolManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another merge Created 8 years 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/database_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/database_manager.h
diff --git a/chrome/browser/safe_browsing/database_manager.h b/chrome/browser/safe_browsing/database_manager.h
index add445d40567c6908d67cc14f2ca5ced0b48ba7e..6e6ffe1b61f52b53a98ee266bbd7ce2f8c67de3e 100644
--- a/chrome/browser/safe_browsing/database_manager.h
+++ b/chrome/browser/safe_browsing/database_manager.h
@@ -233,7 +233,7 @@ class SafeBrowsingDatabaseManager
GetChunksCallback callback);
// Called on the IO thread after the database reports that it added a chunk.
- void OnChunkInserted();
+ void OnAddChunksComplete(AddChunksCallback callback);
// Notification that the database is done loading its bloom filter. We may
// have had to queue checks until the database is ready, and if so, this
@@ -242,8 +242,8 @@ class SafeBrowsingDatabaseManager
// Called on the database thread to add/remove chunks and host keys.
// Callee will free the data when it's done.
- void HandleChunkForDatabase(const std::string& list,
- SBChunkList* chunks);
+ void AddDatabaseChunks(const std::string& list, SBChunkList* chunks,
+ AddChunksCallback callback);
void DeleteDatabaseChunks(std::vector<SBChunkDelete>* chunk_deletes);
@@ -308,7 +308,8 @@ class SafeBrowsingDatabaseManager
virtual void UpdateStarted() OVERRIDE;
virtual void UpdateFinished(bool success) OVERRIDE;
virtual void GetChunks(GetChunksCallback callback) OVERRIDE;
- virtual void AddChunks(const std::string& list, SBChunkList* chunks) OVERRIDE;
+ virtual void AddChunks(const std::string& list, SBChunkList* chunks,
+ AddChunksCallback callback) OVERRIDE;
virtual void DeleteChunks(
std::vector<SBChunkDelete>* delete_chunks) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698