Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ | |
| 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ | |
| 7 | |
| 8 #include "remoting/client/client_logger.h" | |
| 9 | |
| 10 #include "base/task.h" | |
| 11 | |
| 12 class MessageLoop; | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 class ChromotingInstance; | |
| 17 | |
| 18 class PepperClientLogger : public ClientLogger { | |
| 19 public: | |
| 20 PepperClientLogger(ChromotingInstance* instance); | |
| 21 virtual ~PepperClientLogger(); | |
| 22 | |
| 23 void va_Log(logging::LogSeverity severity, const char* format, va_list ap); | |
| 24 void va_VLog(int verboselevel, const char* format, va_list ap); | |
| 25 | |
| 26 private: | |
| 27 void LogToClientUI(const std::string& message); | |
| 28 | |
| 29 ChromotingInstance* instance_; | |
| 30 MessageLoop* message_loop_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(PepperClientLogger); | |
| 33 }; | |
| 34 | |
| 35 } // namespace remoting | |
| 36 | |
| 37 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperClientLogger); | |
| 38 | |
| 39 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_ | |
| OLD | NEW |