Chromium Code Reviews| 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 #ifndef CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ |
| 6 #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ | 6 #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/api/webdata/autofill_web_data.h" | 8 #include "chrome/browser/api/webdata/autofill_web_data.h" |
| 9 | 9 |
| 10 class WebDatabaseService; | |
| 11 | |
| 10 namespace content { | 12 namespace content { |
| 11 class BrowserContext; | 13 class BrowserContext; |
| 12 } | 14 } |
| 13 | 15 |
| 14 // API for Autofill web data. | 16 // API for Autofill web data. |
| 15 class AutofillWebDataService | 17 class AutofillWebDataService |
|
Jói
2013/03/19 20:53:58
I think there is no need for this interface any mo
Cait (Slow)
2013/03/20 22:21:10
I'll wait for a later CL to do this (as well as pu
Jói
2013/03/20 23:09:10
Yep, that's fine.
| |
| 16 : public AutofillWebData, | 18 : public AutofillWebData, |
| 17 public WebDataServiceBase { | 19 public WebDataServiceBase { |
| 18 public: | 20 public: |
| 21 // TODO(joi): This should take a ProfileErrorCallback once this | |
|
Jói
2013/03/19 20:53:58
this TODO seems to be addressed 2 lines below?
Cait (Slow)
2013/03/20 22:21:10
Done.
| |
| 22 // class doesn't simply delegate to WebDataService. | |
| 23 AutofillWebDataService(scoped_refptr<WebDatabaseService> wdbs, | |
| 24 const ProfileErrorCallback& callback); | |
| 25 | |
| 19 // Retrieve an AutofillWebDataService for the given context. | 26 // Retrieve an AutofillWebDataService for the given context. |
| 20 // | 27 // |
| 21 // Can return NULL in some contexts. | 28 // Can return NULL in some contexts. |
| 22 static scoped_refptr<AutofillWebDataService> FromBrowserContext( | 29 static scoped_refptr<AutofillWebDataService> FromBrowserContext( |
| 23 content::BrowserContext* context); | 30 content::BrowserContext* context); |
| 24 | 31 |
| 25 protected: | 32 protected: |
| 26 virtual ~AutofillWebDataService() {} | 33 virtual ~AutofillWebDataService() {} |
| 27 }; | 34 }; |
| 28 | 35 |
| 29 #endif // CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ | 36 #endif // CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_H_ |
| OLD | NEW |