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_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 12 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
13 | |
Ilya Sherman
2013/09/03 23:58:01
nit: Spurious newline.
zysxqn
2013/09/04 17:26:20
Done.
| |
13 #include "components/autofill/content/browser/autocheckout_steps.h" | 14 #include "components/autofill/content/browser/autocheckout_steps.h" |
14 #include "components/autofill/core/browser/autocheckout_bubble_state.h" | 15 #include "components/autofill/core/browser/autocheckout_bubble_state.h" |
15 #include "components/autofill/core/browser/autofill_manager_delegate.h" | 16 #include "components/autofill/core/browser/autofill_manager_delegate.h" |
16 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
17 #include "content/public/browser/web_contents_user_data.h" | 18 #include "content/public/browser/web_contents_user_data.h" |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 struct FrameNavigateParams; | 21 struct FrameNavigateParams; |
21 struct LoadCommittedDetails; | 22 struct LoadCommittedDetails; |
22 class WebContents; | 23 class WebContents; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 const std::vector<base::string16>& values, | 77 const std::vector<base::string16>& values, |
77 const std::vector<base::string16>& labels) OVERRIDE; | 78 const std::vector<base::string16>& labels) OVERRIDE; |
78 virtual void HideAutofillPopup() OVERRIDE; | 79 virtual void HideAutofillPopup() OVERRIDE; |
79 virtual bool IsAutocompleteEnabled() OVERRIDE; | 80 virtual bool IsAutocompleteEnabled() OVERRIDE; |
80 | 81 |
81 virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) OVERRIDE; | 82 virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) OVERRIDE; |
82 virtual void UpdateAutocheckoutStep( | 83 virtual void UpdateAutocheckoutStep( |
83 AutocheckoutStepType step_type, | 84 AutocheckoutStepType step_type, |
84 AutocheckoutStepStatus step_status) OVERRIDE; | 85 AutocheckoutStepStatus step_status) OVERRIDE; |
85 | 86 |
87 virtual void DetectAccountCreationForms( | |
88 const std::vector<autofill::FormStructure*>& forms) OVERRIDE; | |
89 | |
86 // content::WebContentsObserver implementation. | 90 // content::WebContentsObserver implementation. |
87 virtual void DidNavigateMainFrame( | 91 virtual void DidNavigateMainFrame( |
88 const content::LoadCommittedDetails& details, | 92 const content::LoadCommittedDetails& details, |
89 const content::FrameNavigateParams& params) OVERRIDE; | 93 const content::FrameNavigateParams& params) OVERRIDE; |
90 virtual void WebContentsDestroyed( | 94 virtual void WebContentsDestroyed( |
91 content::WebContents* web_contents) OVERRIDE; | 95 content::WebContents* web_contents) OVERRIDE; |
92 virtual void WasShown() OVERRIDE; | 96 virtual void WasShown() OVERRIDE; |
93 | 97 |
94 // Exposed for testing. | 98 // Exposed for testing. |
95 AutofillDialogController* GetDialogControllerForTesting() { | 99 AutofillDialogController* GetDialogControllerForTesting() { |
96 return dialog_controller_.get(); | 100 return dialog_controller_.get(); |
97 } | 101 } |
98 | 102 |
99 private: | 103 private: |
100 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); | 104 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); |
101 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; | 105 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; |
102 | 106 |
103 content::WebContents* const web_contents_; | 107 content::WebContents* const web_contents_; |
104 base::WeakPtr<AutofillDialogController> dialog_controller_; | 108 base::WeakPtr<AutofillDialogController> dialog_controller_; |
105 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; | 109 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; |
106 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 110 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
107 | 111 |
108 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); | 112 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); |
109 }; | 113 }; |
110 | 114 |
111 } // namespace autofill | 115 } // namespace autofill |
112 | 116 |
113 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 117 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
OLD | NEW |