OLD | NEW |
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 Loading... |
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 Loading... |
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__ |
OLD | NEW |