Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_STATE_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 // ManagePasswordsState keeps the current state for ManagePasswordsUIController | 24 // ManagePasswordsState keeps the current state for ManagePasswordsUIController |
| 25 // as well as up-to-date data for this state. | 25 // as well as up-to-date data for this state. |
| 26 class ManagePasswordsState { | 26 class ManagePasswordsState { |
| 27 public: | 27 public: |
| 28 using CredentialsCallback = | 28 using CredentialsCallback = |
| 29 base::Callback<void(const password_manager::CredentialInfo&)>; | 29 base::Callback<void(const password_manager::CredentialInfo&)>; |
| 30 | 30 |
| 31 ManagePasswordsState(); | 31 ManagePasswordsState(); |
| 32 ~ManagePasswordsState(); | 32 ~ManagePasswordsState(); |
| 33 | 33 |
| 34 // Set the client for logging. | 34 // The embedder if this class has to set the client for logging. |
|
vabr (Chromium)
2015/03/17 11:55:13
typo: if -> of
vasilii
2015/03/17 12:11:33
Done.
| |
| 35 void set_client(password_manager::PasswordManagerClient* client) { | 35 void set_client(password_manager::PasswordManagerClient* client) { |
| 36 client_ = client; | 36 client_ = client; |
| 37 } | 37 } |
| 38 | 38 |
| 39 // The methods below discard the current state/data of the object and move it | 39 // The methods below discard the current state/data of the object and move it |
| 40 // to the specified state. | 40 // to the specified state. |
| 41 | 41 |
| 42 // Move to PENDING_PASSWORD_STATE. | 42 // Move to PENDING_PASSWORD_STATE. |
| 43 void OnPendingPassword( | 43 void OnPendingPassword( |
| 44 scoped_ptr<password_manager::PasswordFormManager> form_manager); | 44 scoped_ptr<password_manager::PasswordFormManager> form_manager); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 // The current state of the password manager UI. | 138 // The current state of the password manager UI. |
| 139 password_manager::ui::State state_; | 139 password_manager::ui::State state_; |
| 140 | 140 |
| 141 // The client used for logging. | 141 // The client used for logging. |
| 142 password_manager::PasswordManagerClient* client_; | 142 password_manager::PasswordManagerClient* client_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); | 144 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ | 147 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
| OLD | NEW |