Chromium Code Reviews| Index: remoting/client/plugin/pepper_client_logger.h |
| diff --git a/remoting/client/plugin/pepper_client_logger.h b/remoting/client/plugin/pepper_client_logger.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f607e0f39056adbf4e461f8cf82269a85f2e0898 |
| --- /dev/null |
| +++ b/remoting/client/plugin/pepper_client_logger.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
|
Sergey Ulanov
2011/05/20 00:58:19
2011
garykac
2011/05/20 22:33:16
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ |
| +#define REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ |
| + |
| +#include "remoting/client/client_logger.h" |
| + |
| +#include "base/task.h" |
| + |
| +class MessageLoop; |
| + |
| +namespace remoting { |
| + |
| +class ChromotingInstance; |
| + |
| +class PepperClientLogger : public ClientLogger { |
| + public: |
| + PepperClientLogger(ChromotingInstance* instance); |
| + virtual ~PepperClientLogger(); |
| + |
| + void va_Log(logging::LogSeverity severity, const char* format, va_list ap); |
| + void va_VLog(int verboselevel, const char* format, va_list ap); |
| + |
| + private: |
| + void LogToClientUI(const std::string& message); |
| + |
| + ChromotingInstance* instance_; |
| + MessageLoop* message_loop_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PepperClientLogger); |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperClientLogger); |
| + |
| +#endif // REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ |