OLD | NEW |
---|---|
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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); |
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); |
69 | 69 |
70 // Return value true means that logs sent to LogSavePasswordProgress will be | |
71 // displayed. Return value false means they will be dropped. | |
Ilya Sherman
2014/04/09 21:10:08
nit: "Returns true if logs recorded via LogSavePas
vabr (Chromium)
2014/04/10 08:51:25
Done.
| |
72 virtual bool IsLoggingActive() const; | |
Ilya Sherman
2014/04/09 21:10:08
Should this be pure virtual? Ditto for the two me
vabr (Chromium)
2014/04/10 08:51:25
I'm not sure. My reason for providing default impl
Ilya Sherman
2014/04/10 09:23:07
Let's make them pure virtual for now. We can alwa
blundell
2014/04/11 14:39:16
PasswordClient is already not a pure interface FWI
| |
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_ |
OLD | NEW |