Index: remoting/host/plugin/host_script_object.h |
diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h |
index 9172ada94d6d48e908c7b1b1c48aa15e7e5f3ec7..ef5721cdff910b0dd967dfc76deed30ed67efd5b 100644 |
--- a/remoting/host/plugin/host_script_object.h |
+++ b/remoting/host/plugin/host_script_object.h |
@@ -78,11 +78,10 @@ class HostNPScriptObject : public HostStatusObserver { |
remoting::protocol::ConnectionToClient* client) OVERRIDE; |
virtual void OnShutdown() OVERRIDE; |
- // A Log Message Handler that is called after each LOG message has been |
- // processed. This must be of type LogMessageHandlerFunction defined in |
- // base/logging.h. |
- static bool LogToUI(int severity, const char* file, int line, |
- size_t message_start, const std::string& str); |
+ // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). |
+ // This should only be called by HostLogHandler. To log to the UI, use the |
+ // standard LOG(INFO) and it will be sent to this method. |
+ void PostLogDebugInfo(const std::string& message); |
private: |
enum State { |
@@ -106,6 +105,7 @@ class HostNPScriptObject : public HostStatusObserver { |
void OnStateChanged(State state); |
// Call LogDebugInfo handler if there is one. |
+ // This assumes that it's being called on the correct thread. |
Wez
2011/08/30 05:20:02
nit: "assumes that...called" -> "must be called".
garykac
2011/08/31 00:59:00
Done.
|
void LogDebugInfo(const std::string& message); |
// Callbacks invoked during session setup. |
@@ -190,4 +190,4 @@ class HostNPScriptObject : public HostStatusObserver { |
DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); |
-#endif // REMOTING_HOST_HOST_SCRIPT_OBJECT_H_ |
+#endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |