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

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

Issue 12853004: Move creation of WebDatabaseTable subclasses to WebDatabaseServiceFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge error. 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 explicit WebDataService(const ProfileErrorCallback& callback); 110 WebDataService(const base::FilePath& path,
111 const ProfileErrorCallback& callback);
111 112
112 // Notifies listeners on the UI thread that multiple changes have been made to 113 // Notifies listeners on the UI thread that multiple changes have been made to
113 // to Autofill records of the database. 114 // to Autofill records of the database.
114 // NOTE: This method is intended to be called from the DB thread. It 115 // NOTE: This method is intended to be called from the DB thread. It
115 // it asynchronously notifies listeners on the UI thread. 116 // it asynchronously notifies listeners on the UI thread.
116 // |web_data_service| may be NULL for testing purposes. 117 // |web_data_service| may be NULL for testing purposes.
117 static void NotifyOfMultipleAutofillChanges(WebDataService* web_data_service); 118 static void NotifyOfMultipleAutofillChanges(WebDataService* web_data_service);
118 119
119 120
120 121
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 420
420 // Callbacks to ensure that sensitive info is destroyed if request is 421 // Callbacks to ensure that sensitive info is destroyed if request is
421 // cancelled. 422 // cancelled.
422 void DestroyAutofillProfileResult(const WDTypedResult* result); 423 void DestroyAutofillProfileResult(const WDTypedResult* result);
423 void DestroyAutofillCreditCardResult(const WDTypedResult* result); 424 void DestroyAutofillCreditCardResult(const WDTypedResult* result);
424 425
425 DISALLOW_COPY_AND_ASSIGN(WebDataService); 426 DISALLOW_COPY_AND_ASSIGN(WebDataService);
426 }; 427 };
427 428
428 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 429 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autofill_web_data_service_impl.cc ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698