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

Unified Diff: chrome/browser/api/webdata/web_data_service_base.h

Issue 12476031: Refactor notifications of chrome/browser/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 months 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/search_engines/template_url_service_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/api/webdata/web_data_service_base.h
diff --git a/chrome/browser/api/webdata/web_data_service_base.h b/chrome/browser/api/webdata/web_data_service_base.h
index 8793858adee5405f2696e6d04e0b7aa494a6ba1e..9d691176e168edbf22aa24d53b04b3c82d87d7df 100644
--- a/chrome/browser/api/webdata/web_data_service_base.h
+++ b/chrome/browser/api/webdata/web_data_service_base.h
@@ -119,8 +119,12 @@ class WebDataServiceBase
// by this object. Is created on first call to |GetDBUserData()|.
scoped_ptr<SupportsUserDataAggregatable> db_thread_user_data_;
+ // Called after database is successfully loaded. By default this function does
+ // nothing. Subclasses can override to support notification.
+ virtual void NotifyDatabaseLoadedOnUIThread();
+
void DBInitFailed(sql::InitStatus sql_status);
- void NotifyDatabaseLoadedOnUIThread();
+ void DBInitSucceeded();
void DatabaseInitOnDB(sql::InitStatus status);
};
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698