Convert Chromoting logging to appear in client debug-info div.
[chromium-blink-merge.git] / remoting / client / plugin / pepper_client_logger.h
blobc953e71b725579ff61028787a098f244eb5652c7
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
3 // found in the LICENSE file.
5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_
8 #include "remoting/client/client_logger.h"
10 #include "base/task.h"
12 class MessageLoop;
14 namespace remoting {
16 class ChromotingInstance;
18 class PepperClientLogger : public ClientLogger {
19 public:
20 PepperClientLogger(ChromotingInstance* instance);
21 virtual ~PepperClientLogger();
23 virtual void va_Log(logging::LogSeverity severity, const char* format,
24 va_list ap);
25 virtual void va_VLog(int verboselevel, const char* format, va_list ap);
27 private:
28 void LogToClientUI(const std::string& message);
30 ChromotingInstance* instance_;
31 MessageLoop* message_loop_;
33 DISALLOW_COPY_AND_ASSIGN(PepperClientLogger);
36 } // namespace remoting
38 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperClientLogger);
40 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_