diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 02:17:51 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 02:17:51 +0000 |
commit | c3ff8949df1905e2c0bffe32527a4b11de212ccc (patch) | |
tree | ffb88432b79882716a8779aee7a15efec6f3c65e /chrome/browser/safe_browsing/safe_browsing_service.h | |
parent | 95218fbcd0b0e804175ada19cd8f95f5818242ba (diff) | |
download | chromium_src-c3ff8949df1905e2c0bffe32527a4b11de212ccc.zip chromium_src-c3ff8949df1905e2c0bffe32527a4b11de212ccc.tar.gz chromium_src-c3ff8949df1905e2c0bffe32527a4b11de212ccc.tar.bz2 |
Add support for 256 bit full hashes to the new implementation.
This CL replaces the following, which seems to have become inaccessible:
http://codereview.chromium.org/9202/
Review URL: http://codereview.chromium.org/10402
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_service.h')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_service.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h index 8a87726..d85dd89 100644 --- a/chrome/browser/safe_browsing/safe_browsing_service.h +++ b/chrome/browser/safe_browsing/safe_browsing_service.h @@ -59,9 +59,9 @@ class SafeBrowsingService GURL url; bool proceed; UrlCheckResult result; - Client* client; - int render_process_host_id; - int render_view_id; + Client* client; + int render_process_host_id; + int render_view_id; ResourceType::Type resource_type; }; @@ -135,6 +135,9 @@ class SafeBrowsingService void HandleChunk(const std::string& list, std::deque<SBChunk>* chunks); void HandleChunkDelete(std::vector<SBChunkDelete>* chunk_deletes); void GetAllChunks(); + + // Methods called to indicate the beginning and end of a complete update. + void UpdateStarted(); void UpdateFinished(bool update_succeeded); // The blocking page on the UI thread has completed. @@ -177,6 +180,9 @@ class SafeBrowsingService // threadsafe. SafeBrowsingDatabase* GetDatabase(); + // Release the final reference to the database on the db thread. + void ReleaseDatabase(SafeBrowsingDatabase* database); + // Called on the database thread to check a url. void CheckDatabase(SafeBrowsingCheck* info, base::Time last_update); @@ -203,6 +209,7 @@ class SafeBrowsingService void NotifyClientBlockingComplete(Client* client, bool proceed); + void DatabaseUpdateStarted(); void DatabaseUpdateFinished(bool update_succeeded); void Start(); @@ -215,7 +222,7 @@ class SafeBrowsingService // Runs on the io thread when the reset is complete. void OnResetComplete(); - // Store the results of a GetHash request. Runs on the database thread. + // Store in-memory the GetHash response. Runs on the database thread. void CacheHashResults(const std::vector<SBPrefix>& prefixes, const std::vector<SBFullHashResult>& full_hashes); |