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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_service_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ 5 #ifndef CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_
6 #define CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ 6 #define CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual ~SupportsUserDataAggregatable() {} 112 virtual ~SupportsUserDataAggregatable() {}
113 private: 113 private:
114 DISALLOW_COPY_AND_ASSIGN(SupportsUserDataAggregatable); 114 DISALLOW_COPY_AND_ASSIGN(SupportsUserDataAggregatable);
115 }; 115 };
116 116
117 // Storage for user data to be accessed only on the DB thread. May 117 // Storage for user data to be accessed only on the DB thread. May
118 // be used e.g. for SyncableService subclasses that need to be owned 118 // be used e.g. for SyncableService subclasses that need to be owned
119 // by this object. Is created on first call to |GetDBUserData()|. 119 // by this object. Is created on first call to |GetDBUserData()|.
120 scoped_ptr<SupportsUserDataAggregatable> db_thread_user_data_; 120 scoped_ptr<SupportsUserDataAggregatable> db_thread_user_data_;
121 121
122 // Called after database is successfully loaded. By default this function does
123 // nothing. Subclasses can override to support notification.
124 virtual void NotifyDatabaseLoadedOnUIThread();
125
122 void DBInitFailed(sql::InitStatus sql_status); 126 void DBInitFailed(sql::InitStatus sql_status);
123 void NotifyDatabaseLoadedOnUIThread(); 127 void DBInitSucceeded();
124 void DatabaseInitOnDB(sql::InitStatus status); 128 void DatabaseInitOnDB(sql::InitStatus status);
125 }; 129 };
126 130
127 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ 131 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_
OLDNEW
« 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