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

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

Issue 355143006: [Password Manager] Add UMA stats to track interaction with synced accounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 years, 5 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 | Annotate | Revision Log
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.h" 10 #include "components/password_manager/content/browser/content_password_manager_d river.h"
(...skipping 21 matching lines...) Expand all
32 // ChromePasswordManagerClient implements the PasswordManagerClient interface. 32 // ChromePasswordManagerClient implements the PasswordManagerClient interface.
33 class ChromePasswordManagerClient 33 class ChromePasswordManagerClient
34 : public password_manager::PasswordManagerClient, 34 : public password_manager::PasswordManagerClient,
35 public content::WebContentsObserver, 35 public content::WebContentsObserver,
36 public content::WebContentsUserData<ChromePasswordManagerClient> { 36 public content::WebContentsUserData<ChromePasswordManagerClient> {
37 public: 37 public:
38 virtual ~ChromePasswordManagerClient(); 38 virtual ~ChromePasswordManagerClient();
39 39
40 // PasswordManagerClient implementation. 40 // PasswordManagerClient implementation.
41 virtual bool IsAutomaticPasswordSavingEnabled() const OVERRIDE; 41 virtual bool IsAutomaticPasswordSavingEnabled() const OVERRIDE;
42 virtual bool IsPasswordSyncAccountCredential(
43 const std::string& username, const std::string& origin) const OVERRIDE;
42 virtual void PromptUserToSavePassword( 44 virtual void PromptUserToSavePassword(
43 password_manager::PasswordFormManager* form_to_save) OVERRIDE; 45 password_manager::PasswordFormManager* form_to_save) OVERRIDE;
44 virtual void PasswordWasAutofilled( 46 virtual void PasswordWasAutofilled(
45 const autofill::PasswordFormMap& best_matches) const OVERRIDE; 47 const autofill::PasswordFormMap& best_matches) const OVERRIDE;
46 virtual void PasswordAutofillWasBlocked( 48 virtual void PasswordAutofillWasBlocked(
47 const autofill::PasswordFormMap& best_matches) const OVERRIDE; 49 const autofill::PasswordFormMap& best_matches) const OVERRIDE;
48 virtual void AuthenticateAutofillAndFillForm( 50 virtual void AuthenticateAutofillAndFillForm(
49 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE; 51 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE;
50 virtual PrefService* GetPrefs() OVERRIDE; 52 virtual PrefService* GetPrefs() OVERRIDE;
51 virtual password_manager::PasswordStore* GetPasswordStore() OVERRIDE; 53 virtual password_manager::PasswordStore* GetPasswordStore() OVERRIDE;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Allows authentication callbacks to be destroyed when this client is gone. 129 // Allows authentication callbacks to be destroyed when this client is gone.
128 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_; 130 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_;
129 131
130 // True if |this| is registered with some LogRouter which can accept logs. 132 // True if |this| is registered with some LogRouter which can accept logs.
131 bool can_use_log_router_; 133 bool can_use_log_router_;
132 134
133 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 135 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
134 }; 136 };
135 137
136 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 138 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698