| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | |
| 10 #include <vector> | 9 #include <vector> |
| 11 | 10 |
| 12 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 13 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 14 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 15 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 16 #include "base/values.h" | 15 #include "base/values.h" |
| 17 #include "ui/base/window_open_disposition.h" | 16 #include "ui/base/window_open_disposition.h" |
| 18 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 19 | 18 |
| 20 class GURL; | |
| 21 class IdentityProvider; | 19 class IdentityProvider; |
| 22 class PrefService; | |
| 23 | 20 |
| 24 namespace content { | 21 namespace content { |
| 25 class RenderFrameHost; | 22 class RenderFrameHost; |
| 26 } | 23 } |
| 27 | 24 |
| 28 namespace gfx { | 25 namespace gfx { |
| 29 class Rect; | 26 class Rect; |
| 30 class RectF; | 27 class RectF; |
| 31 } | 28 } |
| 32 | 29 |
| 33 namespace rappor { | 30 namespace rappor { |
| 34 class RapporService; | 31 class RapporService; |
| 35 } | 32 } |
| 36 | 33 |
| 37 namespace syncer { | 34 namespace sync_driver { |
| 38 class SyncService; | 35 class SyncService; |
| 39 } | 36 } |
| 40 | 37 |
| 38 class GURL; |
| 39 class PrefService; |
| 40 |
| 41 namespace autofill { | 41 namespace autofill { |
| 42 | 42 |
| 43 class AutofillPopupDelegate; | 43 class AutofillPopupDelegate; |
| 44 class AutofillWebDataService; | 44 class AutofillWebDataService; |
| 45 class CardUnmaskDelegate; | 45 class CardUnmaskDelegate; |
| 46 class CreditCard; | 46 class CreditCard; |
| 47 class FormStructure; | 47 class FormStructure; |
| 48 class PersonalDataManager; | 48 class PersonalDataManager; |
| 49 struct FormData; | 49 struct FormData; |
| 50 struct Suggestion; | 50 struct Suggestion; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Gets the PersonalDataManager instance associated with the client. | 93 // Gets the PersonalDataManager instance associated with the client. |
| 94 virtual PersonalDataManager* GetPersonalDataManager() = 0; | 94 virtual PersonalDataManager* GetPersonalDataManager() = 0; |
| 95 | 95 |
| 96 // Gets the AutofillWebDataService instance associated with the client. | 96 // Gets the AutofillWebDataService instance associated with the client. |
| 97 virtual scoped_refptr<AutofillWebDataService> GetDatabase() = 0; | 97 virtual scoped_refptr<AutofillWebDataService> GetDatabase() = 0; |
| 98 | 98 |
| 99 // Gets the preferences associated with the client. | 99 // Gets the preferences associated with the client. |
| 100 virtual PrefService* GetPrefs() = 0; | 100 virtual PrefService* GetPrefs() = 0; |
| 101 | 101 |
| 102 // Gets the sync service associated with the client. | 102 // Gets the sync service associated with the client. |
| 103 virtual syncer::SyncService* GetSyncService() = 0; | 103 virtual sync_driver::SyncService* GetSyncService() = 0; |
| 104 | 104 |
| 105 // Gets the IdentityProvider associated with the client (for OAuth2). | 105 // Gets the IdentityProvider associated with the client (for OAuth2). |
| 106 virtual IdentityProvider* GetIdentityProvider() = 0; | 106 virtual IdentityProvider* GetIdentityProvider() = 0; |
| 107 | 107 |
| 108 // Gets the RapporService associated with the client (for metrics). | 108 // Gets the RapporService associated with the client (for metrics). |
| 109 virtual rappor::RapporService* GetRapporService() = 0; | 109 virtual rappor::RapporService* GetRapporService() = 0; |
| 110 | 110 |
| 111 // Causes the Autofill settings UI to be shown. | 111 // Causes the Autofill settings UI to be shown. |
| 112 virtual void ShowAutofillSettings() = 0; | 112 virtual void ShowAutofillSettings() = 0; |
| 113 | 113 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 virtual bool ShouldShowSigninPromo() = 0; | 189 virtual bool ShouldShowSigninPromo() = 0; |
| 190 | 190 |
| 191 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() | 191 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() |
| 192 // returns false. | 192 // returns false. |
| 193 virtual void StartSigninFlow() = 0; | 193 virtual void StartSigninFlow() = 0; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace autofill | 196 } // namespace autofill |
| 197 | 197 |
| 198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |