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

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

Issue 890943002: Add a global setting for "Auto sign-in". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_D ISPATCHER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/prefs/pref_member.h"
12 #include "components/password_manager/core/browser/password_store_consumer.h" 13 #include "components/password_manager/core/browser/password_store_consumer.h"
13 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace autofill { 18 namespace autofill {
18 struct PasswordForm; 19 struct PasswordForm;
19 } 20 }
20 21
21 namespace content { 22 namespace content {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 // Returns the driver for the current main frame. 81 // Returns the driver for the current main frame.
81 // Virtual for testing. 82 // Virtual for testing.
82 virtual base::WeakPtr<PasswordManagerDriver> GetDriver(); 83 virtual base::WeakPtr<PasswordManagerDriver> GetDriver();
83 84
84 void SendCredential(int request_id, const CredentialInfo& info); 85 void SendCredential(int request_id, const CredentialInfo& info);
85 86
86 PasswordManagerClient* client_; 87 PasswordManagerClient* client_;
87 scoped_ptr<CredentialManagerPasswordFormManager> form_manager_; 88 scoped_ptr<CredentialManagerPasswordFormManager> form_manager_;
88 89
90 // Set to false to disable automatic signing in.
91 BooleanPrefMember auto_signin_enabled_;
92
89 // When 'OnRequestCredential' is called, it in turn calls out to the 93 // When 'OnRequestCredential' is called, it in turn calls out to the
90 // PasswordStore; we store request details here in order to properly 94 // PasswordStore; we store request details here in order to properly
91 // respond to the request once the PasswordStore gives us data. 95 // respond to the request once the PasswordStore gives us data.
92 scoped_ptr<PendingRequestParameters> pending_request_; 96 scoped_ptr<PendingRequestParameters> pending_request_;
93 97
94 DISALLOW_COPY_AND_ASSIGN(CredentialManagerDispatcher); 98 DISALLOW_COPY_AND_ASSIGN(CredentialManagerDispatcher);
95 }; 99 };
96 100
97 } // namespace password_manager 101 } // namespace password_manager
98 102
99 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_DISPATCHER_H_ 103 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698