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"
16 class ChromotingInstance
;
18 class PepperClientLogger
: public ClientLogger
{
20 PepperClientLogger(ChromotingInstance
* instance
);
21 virtual ~PepperClientLogger();
23 virtual void va_Log(logging::LogSeverity severity
, const char* format
,
25 virtual void va_VLog(int verboselevel
, const char* format
, va_list ap
);
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_