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

Side by Side Diff: chrome/browser/webdata/web_data_service.h

Issue 12780012: Move UI dependency from WebDataService to WebDataServiceFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
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 // Chromium settings and storage represent user-selected preferences and 5 // Chromium settings and storage represent user-selected preferences and
6 // information and MUST not be extracted, overwritten or modified except 6 // information and MUST not be extracted, overwritten or modified except
7 // through Chromium defined APIs. 7 // through Chromium defined APIs.
8 8
9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 class WebDataServiceConsumer; 100 class WebDataServiceConsumer;
101 101
102 class WebDataService 102 class WebDataService
103 : public WebDataServiceBase, 103 : public WebDataServiceBase,
104 public AutofillWebData { 104 public AutofillWebData {
105 public: 105 public:
106 // Retrieve a WebDataService for the given context. 106 // Retrieve a WebDataService for the given context.
107 static scoped_refptr<WebDataService> FromBrowserContext( 107 static scoped_refptr<WebDataService> FromBrowserContext(
108 content::BrowserContext* context); 108 content::BrowserContext* context);
109 109
110 WebDataService(); 110 WebDataService(const ProfileErrorCallback& callback);
111 111
112 // WebDataServiceBase implementation. 112 // WebDataServiceBase implementation.
113 virtual void ShutdownOnUIThread() OVERRIDE; 113 virtual void ShutdownOnUIThread() OVERRIDE;
114 virtual void Init(const base::FilePath& path) OVERRIDE; 114 virtual void Init(const base::FilePath& path) OVERRIDE;
115 115
116 // Notifies listeners on the UI thread that multiple changes have been made to 116 // Notifies listeners on the UI thread that multiple changes have been made to
117 // to Autofill records of the database. 117 // to Autofill records of the database.
118 // NOTE: This method is intended to be called from the DB thread. It 118 // NOTE: This method is intended to be called from the DB thread. It
119 // it asynchronously notifies listeners on the UI thread. 119 // it asynchronously notifies listeners on the UI thread.
120 // |web_data_service| may be NULL for testing purposes. 120 // |web_data_service| may be NULL for testing purposes.
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // thread. 443 // thread.
444 // Currently only Autocomplete and Autofill profiles use the new Sync API, but 444 // Currently only Autocomplete and Autofill profiles use the new Sync API, but
445 // all the database data should migrate to this API over time. 445 // all the database data should migrate to this API over time.
446 AutocompleteSyncableService* autocomplete_syncable_service_; 446 AutocompleteSyncableService* autocomplete_syncable_service_;
447 AutofillProfileSyncableService* autofill_profile_syncable_service_; 447 AutofillProfileSyncableService* autofill_profile_syncable_service_;
448 448
449 DISALLOW_COPY_AND_ASSIGN(WebDataService); 449 DISALLOW_COPY_AND_ASSIGN(WebDataService);
450 }; 450 };
451 451
452 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 452 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698