Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_state.h

Issue 1009953002: Integrate ManagePasswordsState into ManagePasswordsUIController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last comments Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 of this class has to set the client for logging.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698