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

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, 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 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 "components/password_manager/content/browser/content_password_manager_d river_factory.h" 10 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
(...skipping 24 matching lines...) Expand all
35 // ChromePasswordManagerClient implements the PasswordManagerClient interface. 35 // ChromePasswordManagerClient implements the PasswordManagerClient interface.
36 class ChromePasswordManagerClient 36 class ChromePasswordManagerClient
37 : public password_manager::PasswordManagerClient, 37 : public password_manager::PasswordManagerClient,
38 public content::WebContentsObserver, 38 public content::WebContentsObserver,
39 public content::WebContentsUserData<ChromePasswordManagerClient> { 39 public content::WebContentsUserData<ChromePasswordManagerClient> {
40 public: 40 public:
41 ~ChromePasswordManagerClient() override; 41 ~ChromePasswordManagerClient() override;
42 42
43 // PasswordManagerClient implementation. 43 // PasswordManagerClient implementation.
44 bool IsAutomaticPasswordSavingEnabled() const override; 44 bool IsAutomaticPasswordSavingEnabled() const override;
45 bool IsEnabledForCurrentPage() const override;
45 bool IsPasswordManagerEnabledForCurrentPage() const override; 46 bool IsPasswordManagerEnabledForCurrentPage() const override;
46 bool ShouldFilterAutofillResult(const autofill::PasswordForm& form) override; 47 bool ShouldFilterAutofillResult(const autofill::PasswordForm& form) override;
47 std::string GetSyncUsername() const override; 48 std::string GetSyncUsername() const override;
48 bool IsSyncAccountCredential(const std::string& username, 49 bool IsSyncAccountCredential(const std::string& username,
49 const std::string& origin) const override; 50 const std::string& origin) const override;
50 void AutofillResultsComputed() override; 51 void AutofillResultsComputed() override;
51 bool PromptUserToSavePassword( 52 bool PromptUserToSavePassword(
52 scoped_ptr<password_manager::PasswordFormManager> form_to_save, 53 scoped_ptr<password_manager::PasswordFormManager> form_to_save,
53 password_manager::CredentialSourceType type) override; 54 password_manager::CredentialSourceType type) override;
54 bool PromptUserToChooseCredentials( 55 bool PromptUserToChooseCredentials(
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 AutofillForSyncCredentialsState autofill_sync_state_; 172 AutofillForSyncCredentialsState autofill_sync_state_;
172 173
173 // If the sync credential was filtered during autofill. Used for statistics 174 // If the sync credential was filtered during autofill. Used for statistics
174 // reporting. 175 // reporting.
175 bool sync_credential_was_filtered_; 176 bool sync_credential_was_filtered_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 178 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
178 }; 179 };
179 180
180 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 181 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698