diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-02 22:13:41 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-02 22:13:41 +0000 |
commit | aad08754d7ff3be93fd415a36a588fadd2e34bd0 (patch) | |
tree | debef6a2e7162b7b08ad0218384dfa607f9ccac8 /chrome/browser/safe_browsing/safe_browsing_service.cc | |
parent | aa87dd3130e941327c40cceb145c4fc58954ecb6 (diff) | |
download | chromium_src-aad08754d7ff3be93fd415a36a588fadd2e34bd0.zip chromium_src-aad08754d7ff3be93fd415a36a588fadd2e34bd0.tar.gz chromium_src-aad08754d7ff3be93fd415a36a588fadd2e34bd0.tar.bz2 |
A partially working implementation of a faster safe browsing implementation.
Review URL: http://codereview.chromium.org/5643
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2814 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_service.cc')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_service.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc index 1cd4ff7..9a35ddd 100644 --- a/chrome/browser/safe_browsing/safe_browsing_service.cc +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc @@ -373,6 +373,19 @@ void SafeBrowsingService::GetAllChunks() { this, &SafeBrowsingService::GetAllChunksFromDatabase)); } +void SafeBrowsingService::UpdateFinished() { + DCHECK(MessageLoop::current() == io_loop_); + DCHECK(enabled_); + db_thread_->message_loop()->PostTask(FROM_HERE, NewRunnableMethod( + this, &SafeBrowsingService::DatabaseUpdateFinished)); +} + +void SafeBrowsingService::DatabaseUpdateFinished() { + DCHECK(MessageLoop::current() == db_thread_->message_loop()); + if (GetDatabase()) + GetDatabase()->UpdateFinished(); +} + void SafeBrowsingService::OnBlockingPageDone(SafeBrowsingBlockingPage* page, Client* client, bool proceed) { |