| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ |
| 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ |
| 7 | 7 |
| 8 #include "remoting/client/client_logger.h" | 8 #include "remoting/base/logger.h" |
| 9 | 9 |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| 11 | 11 |
| 12 class MessageLoop; | 12 class MessageLoop; |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| 16 class ChromotingInstance; | 16 class ChromotingInstance; |
| 17 | 17 |
| 18 class PepperClientLogger : public ClientLogger { | 18 class PepperClientLogger : public Logger { |
| 19 public: | 19 public: |
| 20 PepperClientLogger(ChromotingInstance* instance); | 20 PepperClientLogger(ChromotingInstance* instance); |
| 21 virtual ~PepperClientLogger(); | 21 virtual ~PepperClientLogger(); |
| 22 | 22 |
| 23 virtual void va_Log(logging::LogSeverity severity, const char* format, | 23 virtual void va_Log(logging::LogSeverity severity, const char* format, |
| 24 va_list ap); | 24 va_list ap); |
| 25 virtual void va_VLog(int verboselevel, const char* format, va_list ap); | 25 virtual void va_VLog(int verboselevel, const char* format, va_list ap); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 void LogToClientUI(const std::string& message); | 28 void LogToClientUI(const std::string& message); |
| 29 | 29 |
| 30 ChromotingInstance* instance_; | 30 ChromotingInstance* instance_; |
| 31 MessageLoop* message_loop_; | 31 MessageLoop* message_loop_; |
| 32 | 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(PepperClientLogger); | 33 DISALLOW_COPY_AND_ASSIGN(PepperClientLogger); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace remoting | 36 } // namespace remoting |
| 37 | 37 |
| 38 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperClientLogger); | 38 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperClientLogger); |
| 39 | 39 |
| 40 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ | 40 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ |
| OLD | NEW |