| 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" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) OVERRIDE; | 74 virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) OVERRIDE; |
| 75 virtual void UpdateAutocheckoutStep( | 75 virtual void UpdateAutocheckoutStep( |
| 76 AutocheckoutStepType step_type, | 76 AutocheckoutStepType step_type, |
| 77 AutocheckoutStepStatus step_status) OVERRIDE; | 77 AutocheckoutStepStatus step_status) OVERRIDE; |
| 78 | 78 |
| 79 // content::WebContentsObserver implementation. | 79 // content::WebContentsObserver implementation. |
| 80 virtual void DidNavigateMainFrame( | 80 virtual void DidNavigateMainFrame( |
| 81 const content::LoadCommittedDetails& details, | 81 const content::LoadCommittedDetails& details, |
| 82 const content::FrameNavigateParams& params) OVERRIDE; | 82 const content::FrameNavigateParams& params) OVERRIDE; |
| 83 virtual void WebContentsDestroyed( |
| 84 content::WebContents* web_contents) OVERRIDE; |
| 83 | 85 |
| 84 // Exposed for testing. | 86 // Exposed for testing. |
| 85 AutofillDialogControllerImpl* GetDialogControllerForTesting() { | 87 AutofillDialogControllerImpl* GetDialogControllerForTesting() { |
| 86 return dialog_controller_.get(); | 88 return dialog_controller_.get(); |
| 87 } | 89 } |
| 88 | 90 |
| 89 private: | 91 private: |
| 90 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); | 92 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); |
| 91 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; | 93 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; |
| 92 | 94 |
| 93 content::WebContents* const web_contents_; | 95 content::WebContents* const web_contents_; |
| 94 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_; | 96 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_; |
| 95 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; | 97 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; |
| 96 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 98 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
| 97 | 99 |
| 98 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); | 100 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } // namespace autofill | 103 } // namespace autofill |
| 102 | 104 |
| 103 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 105 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |