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_LOGGER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOG_RECEIVER_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_LOGGER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOG_RECEIVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | 10 |
11 namespace password_manager { | 11 namespace password_manager { |
12 | 12 |
13 // This interface is used by the password management code to report on progress | 13 // This interface is used by the password management code to receive and display |
14 // of actions like saving a password. | 14 // logs about progress of actions like saving a password. |
15 class PasswordManagerLogger { | 15 class LogReceiver { |
16 public: | 16 public: |
17 PasswordManagerLogger() {} | 17 LogReceiver() {} |
18 virtual ~PasswordManagerLogger() {} | 18 virtual ~LogReceiver() {} |
19 | 19 |
20 virtual void LogSavePasswordProgress(const std::string& text) = 0; | 20 virtual void LogSavePasswordProgress(const std::string& text) = 0; |
21 | 21 |
22 private: | 22 private: |
23 DISALLOW_COPY_AND_ASSIGN(PasswordManagerLogger); | 23 DISALLOW_COPY_AND_ASSIGN(LogReceiver); |
24 }; | 24 }; |
25 | 25 |
26 } // namespace password_manager | 26 } // namespace password_manager |
27 | 27 |
28 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_LOGGER_H_ | 28 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOG_RECEIVER_H_ |
OLD | NEW |