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

Side by Side Diff: components/password_manager/content/browser/credential_manager_impl.h

Issue 2900693002: [Password Manager] Convert |pending_login_managers_| to an array of scoped_refptr (Closed)
Patch Set: Rebase Created 3 years, 6 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 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 COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_I MPL_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_I MPL_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_I MPL_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_I MPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Returns FormDigest for the current URL. 78 // Returns FormDigest for the current URL.
79 PasswordStore::FormDigest GetSynthesizedFormForOrigin() const; 79 PasswordStore::FormDigest GetSynthesizedFormForOrigin() const;
80 80
81 private: 81 private:
82 // Returns the driver for the current main frame. 82 // Returns the driver for the current main frame.
83 // Virtual for testing. 83 // Virtual for testing.
84 virtual base::WeakPtr<PasswordManagerDriver> GetDriver(); 84 virtual base::WeakPtr<PasswordManagerDriver> GetDriver();
85 85
86 PasswordManagerClient* client_; 86 PasswordManagerClient* client_;
87 std::unique_ptr<CredentialManagerPasswordFormManager> form_manager_; 87 scoped_refptr<CredentialManagerPasswordFormManager> form_manager_;
88 88
89 // Set to false to disable automatic signing in. 89 // Set to false to disable automatic signing in.
90 BooleanPrefMember auto_signin_enabled_; 90 BooleanPrefMember auto_signin_enabled_;
91 91
92 // When 'OnRequestCredential' is called, it in turn calls out to the 92 // When 'OnRequestCredential' is called, it in turn calls out to the
93 // PasswordStore; we push enough data into Pending*Task objects so that 93 // PasswordStore; we push enough data into Pending*Task objects so that
94 // they can properly respond to the request once the PasswordStore gives 94 // they can properly respond to the request once the PasswordStore gives
95 // us data. 95 // us data.
96 std::unique_ptr<CredentialManagerPendingRequestTask> pending_request_; 96 std::unique_ptr<CredentialManagerPendingRequestTask> pending_request_;
97 std::unique_ptr<CredentialManagerPendingPreventSilentAccessTask> 97 std::unique_ptr<CredentialManagerPendingPreventSilentAccessTask>
98 pending_require_user_mediation_; 98 pending_require_user_mediation_;
99 99
100 mojo::BindingSet<mojom::CredentialManager> bindings_; 100 mojo::BindingSet<mojom::CredentialManager> bindings_;
101 101
102 base::WeakPtrFactory<CredentialManagerImpl> weak_factory_; 102 base::WeakPtrFactory<CredentialManagerImpl> weak_factory_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(CredentialManagerImpl); 104 DISALLOW_COPY_AND_ASSIGN(CredentialManagerImpl);
105 }; 105 };
106 106
107 } // namespace password_manager 107 } // namespace password_manager
108 108
109 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_IMPL_H_ 109 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698