| 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 CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 virtual void UpdateBubbleAndIconVisibility(); | 130 virtual void UpdateBubbleAndIconVisibility(); |
| 131 | 131 |
| 132 // Called to create the account chooser dialog. Mocked in tests. | 132 // Called to create the account chooser dialog. Mocked in tests. |
| 133 virtual AccountChooserPrompt* CreateAccountChooser( | 133 virtual AccountChooserPrompt* CreateAccountChooser( |
| 134 PasswordDialogController* controller); | 134 PasswordDialogController* controller); |
| 135 | 135 |
| 136 // Called to create the account chooser dialog. Mocked in tests. | 136 // Called to create the account chooser dialog. Mocked in tests. |
| 137 virtual AutoSigninFirstRunPrompt* CreateAutoSigninPrompt( | 137 virtual AutoSigninFirstRunPrompt* CreateAutoSigninPrompt( |
| 138 PasswordDialogController* controller); | 138 PasswordDialogController* controller); |
| 139 | 139 |
| 140 // Check if |web_contents()| is attached to some Browser. Mocked in tests. |
| 141 virtual bool HasBrowserWindow() const; |
| 142 |
| 140 // Overwrites the client for |passwords_data_|. | 143 // Overwrites the client for |passwords_data_|. |
| 141 void set_client(password_manager::PasswordManagerClient* client) { | 144 void set_client(password_manager::PasswordManagerClient* client) { |
| 142 passwords_data_.set_client(client); | 145 passwords_data_.set_client(client); |
| 143 } | 146 } |
| 144 | 147 |
| 145 // content::WebContentsObserver: | 148 // content::WebContentsObserver: |
| 146 void DidNavigateMainFrame( | 149 void DidNavigateMainFrame( |
| 147 const content::LoadCommittedDetails& details, | 150 const content::LoadCommittedDetails& details, |
| 148 const content::FrameNavigateParams& params) override; | 151 const content::FrameNavigateParams& params) override; |
| 149 void WasHidden() override; | 152 void WasHidden() override; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Thus, OnBubbleHidden() can be called after the new one is shown. By that | 190 // Thus, OnBubbleHidden() can be called after the new one is shown. By that |
| 188 // time the internal state of ManagePasswordsUIController has nothing to do | 191 // time the internal state of ManagePasswordsUIController has nothing to do |
| 189 // with the old bubble. | 192 // with the old bubble. |
| 190 // Invalidating all the weak pointers will detach the current bubble. | 193 // Invalidating all the weak pointers will detach the current bubble. |
| 191 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_; | 194 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_; |
| 192 | 195 |
| 193 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 196 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
| 194 }; | 197 }; |
| 195 | 198 |
| 196 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 199 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| OLD | NEW |