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

Side by Side Diff: components/password_manager/core/browser/password_manager_client.h

Issue 228263004: Password manager internals page: Introduce logger in renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 6 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 | 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "components/autofill/core/common/password_form_fill_data.h" 10 #include "components/autofill/core/common/password_form_fill_data.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Returns the probability that the experiment identified by |experiment_name| 55 // Returns the probability that the experiment identified by |experiment_name|
56 // should be enabled. The default implementation returns 0. 56 // should be enabled. The default implementation returns 0.
57 virtual base::FieldTrial::Probability GetProbabilityForExperiment( 57 virtual base::FieldTrial::Probability GetProbabilityForExperiment(
58 const std::string& experiment_name); 58 const std::string& experiment_name);
59 59
60 // Returns true if password sync is enabled in the embedder. The default 60 // Returns true if password sync is enabled in the embedder. The default
61 // implementation returns false. 61 // implementation returns false.
62 virtual bool IsPasswordSyncEnabled(); 62 virtual bool IsPasswordSyncEnabled();
63 63
64 // Attach or detach (setting NULL) a logger for this client. 64 // Attach or detach (setting NULL) a logger for this client.
65 virtual void SetLogger(PasswordManagerLogger* logger); 65 virtual void SetLogger(PasswordManagerLogger* logger) = 0;
66 66
67 // Send |text| to the logger. 67 // Send |text| to the logger.
68 virtual void LogSavePasswordProgress(const std::string& text); 68 virtual void LogSavePasswordProgress(const std::string& text) = 0;
69
70 // Returns true if logs recorded via LogSavePasswordProgress will be
71 // displayed, and false otherwise.
72 virtual bool IsLoggingActive() const = 0;
69 73
70 private: 74 private:
71 DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); 75 DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient);
72 }; 76 };
73 77
74 } // namespace password_manager 78 } // namespace password_manager
75 79
76 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ 80 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698