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

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

Issue 644053003: [Password Manager] Add UMA stats for custom passphrase users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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_credential_manager _dispatcher.h" 10 #include "components/password_manager/content/browser/content_credential_manager _dispatcher.h"
(...skipping 26 matching lines...) Expand all
37 public content::WebContentsObserver, 37 public content::WebContentsObserver,
38 public content::WebContentsUserData<ChromePasswordManagerClient> { 38 public content::WebContentsUserData<ChromePasswordManagerClient> {
39 public: 39 public:
40 virtual ~ChromePasswordManagerClient(); 40 virtual ~ChromePasswordManagerClient();
41 41
42 // PasswordManagerClient implementation. 42 // PasswordManagerClient implementation.
43 virtual bool IsAutomaticPasswordSavingEnabled() const override; 43 virtual bool IsAutomaticPasswordSavingEnabled() const override;
44 virtual bool IsPasswordManagerEnabledForCurrentPage() const override; 44 virtual bool IsPasswordManagerEnabledForCurrentPage() const override;
45 virtual bool ShouldFilterAutofillResult( 45 virtual bool ShouldFilterAutofillResult(
46 const autofill::PasswordForm& form) override; 46 const autofill::PasswordForm& form) override;
47 virtual std::string GetSyncUsername() const override;
47 virtual bool IsSyncAccountCredential( 48 virtual bool IsSyncAccountCredential(
48 const std::string& username, const std::string& origin) const override; 49 const std::string& username, const std::string& origin) const override;
49 virtual void AutofillResultsComputed() override; 50 virtual void AutofillResultsComputed() override;
50 virtual bool PromptUserToSavePassword( 51 virtual bool PromptUserToSavePassword(
51 scoped_ptr<password_manager::PasswordFormManager> form_to_save) override; 52 scoped_ptr<password_manager::PasswordFormManager> form_to_save) override;
52 virtual void AutomaticPasswordSave( 53 virtual void AutomaticPasswordSave(
53 scoped_ptr<password_manager::PasswordFormManager> saved_form_manager) 54 scoped_ptr<password_manager::PasswordFormManager> saved_form_manager)
54 override; 55 override;
55 virtual void PasswordWasAutofilled( 56 virtual void PasswordWasAutofilled(
56 const autofill::PasswordFormMap& best_matches) const override; 57 const autofill::PasswordFormMap& best_matches) const override;
57 virtual void PasswordAutofillWasBlocked( 58 virtual void PasswordAutofillWasBlocked(
58 const autofill::PasswordFormMap& best_matches) const override; 59 const autofill::PasswordFormMap& best_matches) const override;
59 virtual PrefService* GetPrefs() override; 60 virtual PrefService* GetPrefs() override;
60 virtual password_manager::PasswordStore* GetPasswordStore() override; 61 virtual password_manager::PasswordStore* GetPasswordStore() override;
61 virtual password_manager::PasswordManagerDriver* GetDriver() override; 62 virtual password_manager::PasswordManagerDriver* GetDriver() override;
62 virtual base::FieldTrial::Probability GetProbabilityForExperiment( 63 virtual base::FieldTrial::Probability GetProbabilityForExperiment(
63 const std::string& experiment_name) override; 64 const std::string& experiment_name) override;
64 virtual bool IsPasswordSyncEnabled() override; 65 virtual bool IsPasswordSyncEnabled(
66 password_manager::CustomPassphraseState state) override;
65 virtual void OnLogRouterAvailabilityChanged(bool router_can_be_used) override; 67 virtual void OnLogRouterAvailabilityChanged(bool router_can_be_used) override;
66 virtual void LogSavePasswordProgress(const std::string& text) override; 68 virtual void LogSavePasswordProgress(const std::string& text) override;
67 virtual bool IsLoggingActive() const override; 69 virtual bool IsLoggingActive() const override;
68 70
69 // Hides any visible generation UI. 71 // Hides any visible generation UI.
70 void HidePasswordGenerationPopup(); 72 void HidePasswordGenerationPopup();
71 73
72 static void CreateForWebContentsWithAutofillClient( 74 static void CreateForWebContentsWithAutofillClient(
73 content::WebContents* contents, 75 content::WebContents* contents,
74 autofill::AutofillClient* autofill_client); 76 autofill::AutofillClient* autofill_client);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 AutofillForSyncCredentialsState autofill_sync_state_; 163 AutofillForSyncCredentialsState autofill_sync_state_;
162 164
163 // If the sync credential was filtered during autofill. Used for statistics 165 // If the sync credential was filtered during autofill. Used for statistics
164 // reporting. 166 // reporting.
165 bool sync_credential_was_filtered_; 167 bool sync_credential_was_filtered_;
166 168
167 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 169 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
168 }; 170 };
169 171
170 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 172 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698