Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef REMOTING_HOST_PLUGIN_HOST_PLUGIN_LOGGER_H_ | |
| 6 #define REMOTING_HOST_PLUGIN_HOST_PLUGIN_LOGGER_H_ | |
| 7 | |
| 8 #include "remoting/base/logger.h" | |
| 9 | |
| 10 #include "base/task.h" | |
| 11 | |
| 12 class MessageLoop; | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 class HostNPScriptObject; | |
| 17 | |
| 18 class HostPluginLogger : public Logger { | |
| 19 public: | |
| 20 HostPluginLogger(HostNPScriptObject* scriptable); | |
|
dmac
2011/06/26 14:34:44
explicit?
garykac
2011/06/27 21:24:20
Absolutely. Good catch.
Fixed here and for the cl
| |
| 21 virtual ~HostPluginLogger(); | |
| 22 | |
| 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); | |
| 26 | |
| 27 private: | |
| 28 void LogToHostUI(const std::string& message); | |
| 29 | |
| 30 HostNPScriptObject* scriptable_object_; | |
| 31 MessageLoop* message_loop_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(HostPluginLogger); | |
| 34 }; | |
| 35 | |
| 36 } // namespace remoting | |
| 37 | |
| 38 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostPluginLogger); | |
| 39 | |
| 40 #endif // REMOTING_HOST_PLUGIN_HOST_PLUGIN_LOGGER_H_ | |
| OLD | NEW |