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

Side by Side Diff: chrome/browser/password_manager/chrome_password_manager_client.h

Issue 1031153002: [Credential Management] Smart lock save Credentials bubble should not always pop up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/prefs/pref_member.h"
10 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h" 11 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
11 #include "components/password_manager/content/browser/credential_manager_dispatc her.h" 12 #include "components/password_manager/content/browser/credential_manager_dispatc her.h"
12 #include "components/password_manager/core/browser/password_manager.h" 13 #include "components/password_manager/core/browser/password_manager.h"
13 #include "components/password_manager/core/browser/password_manager_client.h" 14 #include "components/password_manager/core/browser/password_manager_client.h"
14 #include "content/public/browser/web_contents_observer.h" 15 #include "content/public/browser/web_contents_observer.h"
15 #include "content/public/browser/web_contents_user_data.h" 16 #include "content/public/browser/web_contents_user_data.h"
16 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
17 18
18 class Profile; 19 class Profile;
19 20
(...skipping 15 matching lines...) Expand all
35 // ChromePasswordManagerClient implements the PasswordManagerClient interface. 36 // ChromePasswordManagerClient implements the PasswordManagerClient interface.
36 class ChromePasswordManagerClient 37 class ChromePasswordManagerClient
37 : public password_manager::PasswordManagerClient, 38 : public password_manager::PasswordManagerClient,
38 public content::WebContentsObserver, 39 public content::WebContentsObserver,
39 public content::WebContentsUserData<ChromePasswordManagerClient> { 40 public content::WebContentsUserData<ChromePasswordManagerClient> {
40 public: 41 public:
41 ~ChromePasswordManagerClient() override; 42 ~ChromePasswordManagerClient() override;
42 43
43 // PasswordManagerClient implementation. 44 // PasswordManagerClient implementation.
44 bool IsAutomaticPasswordSavingEnabled() const override; 45 bool IsAutomaticPasswordSavingEnabled() const override;
45 bool IsPasswordManagerEnabledForCurrentPage() const override; 46 bool IsPasswordManagementEnabledForCurrentPage() const override;
47 bool IsSavingEnabledForCurrentPage() const override;
46 bool ShouldFilterAutofillResult(const autofill::PasswordForm& form) override; 48 bool ShouldFilterAutofillResult(const autofill::PasswordForm& form) override;
47 std::string GetSyncUsername() const override; 49 std::string GetSyncUsername() const override;
48 bool IsSyncAccountCredential(const std::string& username, 50 bool IsSyncAccountCredential(const std::string& username,
49 const std::string& origin) const override; 51 const std::string& origin) const override;
50 void AutofillResultsComputed() override; 52 void AutofillResultsComputed() override;
51 bool PromptUserToSavePassword( 53 bool PromptUserToSavePassword(
52 scoped_ptr<password_manager::PasswordFormManager> form_to_save, 54 scoped_ptr<password_manager::PasswordFormManager> form_to_save,
53 password_manager::CredentialSourceType type) override; 55 password_manager::CredentialSourceType type) override;
54 bool PromptUserToChooseCredentials( 56 bool PromptUserToChooseCredentials(
55 ScopedVector<autofill::PasswordForm> local_forms, 57 ScopedVector<autofill::PasswordForm> local_forms,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // True if |this| is registered with some LogRouter which can accept logs. 167 // True if |this| is registered with some LogRouter which can accept logs.
166 bool can_use_log_router_; 168 bool can_use_log_router_;
167 169
168 // How to handle the sync credential in ShouldFilterAutofillResult(). 170 // How to handle the sync credential in ShouldFilterAutofillResult().
169 AutofillForSyncCredentialsState autofill_sync_state_; 171 AutofillForSyncCredentialsState autofill_sync_state_;
170 172
171 // If the sync credential was filtered during autofill. Used for statistics 173 // If the sync credential was filtered during autofill. Used for statistics
172 // reporting. 174 // reporting.
173 bool sync_credential_was_filtered_; 175 bool sync_credential_was_filtered_;
174 176
177 // Set to false to disable password saving (will no longer ask if you
178 // want to save passwords but will continue to fill passwords).
179 BooleanPrefMember saving_passwords_enabled_;
180
175 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 181 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
176 }; 182 };
177 183
178 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 184 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698