OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "components/autofill/core/browser/autofill_client.h" | 10 #include "components/autofill/core/browser/autofill_client.h" |
11 #include "components/autofill/core/browser/autofill_driver.h" | 11 #include "components/autofill/core/browser/autofill_driver.h" |
12 #include "components/autofill/core/browser/autofill_external_delegate.h" | 12 #include "components/autofill/core/browser/autofill_external_delegate.h" |
13 #include "components/autofill/core/browser/autofill_manager.h" | 13 #include "components/autofill/core/browser/autofill_manager.h" |
14 #include "ios/web/public/web_state/web_state_user_data.h" | 14 #include "ios/web/public/web_state/web_state_user_data.h" |
15 | 15 |
16 namespace web { | 16 namespace web { |
17 class WebState; | 17 class WebState; |
18 } | 18 } |
19 | 19 |
20 @protocol AutofillDriverIOSBridge; | 20 @protocol AutofillDriverIOSBridge; |
21 | 21 |
22 namespace autofill { | 22 namespace autofill { |
23 | 23 |
24 class AutofillManagerDelegate; | |
25 | |
26 // Class that drives autofill flow on iOS. There is one instance per | 24 // Class that drives autofill flow on iOS. There is one instance per |
27 // WebContents. | 25 // WebContents. |
28 class AutofillDriverIOS : public AutofillDriver, | 26 class AutofillDriverIOS : public AutofillDriver, |
29 public web::WebStateUserData<AutofillDriverIOS> { | 27 public web::WebStateUserData<AutofillDriverIOS> { |
30 public: | 28 public: |
31 static void CreateForWebStateAndDelegate( | 29 static void CreateForWebStateAndDelegate( |
32 web::WebState* web_state, | 30 web::WebState* web_state, |
33 AutofillClient* client, | 31 AutofillClient* client, |
34 id<AutofillDriverIOSBridge> bridge, | 32 id<AutofillDriverIOSBridge> bridge, |
35 const std::string& app_locale, | 33 const std::string& app_locale, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // AutofillManager instance via which this object drives the shared Autofill | 78 // AutofillManager instance via which this object drives the shared Autofill |
81 // code. | 79 // code. |
82 AutofillManager autofill_manager_; | 80 AutofillManager autofill_manager_; |
83 // AutofillExternalDelegate instance that is passed to the AutofillManager. | 81 // AutofillExternalDelegate instance that is passed to the AutofillManager. |
84 AutofillExternalDelegate autofill_external_delegate_; | 82 AutofillExternalDelegate autofill_external_delegate_; |
85 }; | 83 }; |
86 | 84 |
87 } // namespace autofill | 85 } // namespace autofill |
88 | 86 |
89 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ | 87 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ |
OLD | NEW |