| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 5 #ifndef REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 bool GetProperty(const std::string& property_name, NPVariant* result); | 67 bool GetProperty(const std::string& property_name, NPVariant* result); |
| 68 bool SetProperty(const std::string& property_name, const NPVariant* value); | 68 bool SetProperty(const std::string& property_name, const NPVariant* value); |
| 69 bool RemoveProperty(const std::string& property_name); | 69 bool RemoveProperty(const std::string& property_name); |
| 70 bool Enumerate(std::vector<std::string>* values); | 70 bool Enumerate(std::vector<std::string>* values); |
| 71 | 71 |
| 72 // remoting::HostStatusObserver implementation. | 72 // remoting::HostStatusObserver implementation. |
| 73 virtual void OnSignallingConnected(remoting::SignalStrategy* signal_strategy, | 73 virtual void OnSignallingConnected(remoting::SignalStrategy* signal_strategy, |
| 74 const std::string& full_jid) OVERRIDE; | 74 const std::string& full_jid) OVERRIDE; |
| 75 virtual void OnSignallingDisconnected() OVERRIDE; | 75 virtual void OnSignallingDisconnected() OVERRIDE; |
| 76 virtual void OnAccessDenied() OVERRIDE; | 76 virtual void OnAccessDenied() OVERRIDE; |
| 77 virtual void OnClientAuthenticated( | 77 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
| 78 remoting::protocol::ConnectionToClient* client) OVERRIDE; | 78 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
| 79 virtual void OnClientDisconnected( | |
| 80 remoting::protocol::ConnectionToClient* client) OVERRIDE; | |
| 81 virtual void OnShutdown() OVERRIDE; | 79 virtual void OnShutdown() OVERRIDE; |
| 82 | 80 |
| 83 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). | 81 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). |
| 84 // This should only be called by HostLogHandler. To log to the UI, use the | 82 // This should only be called by HostLogHandler. To log to the UI, use the |
| 85 // standard LOG(INFO) and it will be sent to this method. | 83 // standard LOG(INFO) and it will be sent to this method. |
| 86 void PostLogDebugInfo(const std::string& message); | 84 void PostLogDebugInfo(const std::string& message); |
| 87 | 85 |
| 88 private: | 86 private: |
| 89 enum State { | 87 enum State { |
| 90 kDisconnected, | 88 kDisconnected, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // it can be executed after at least one successful policy read. This | 204 // it can be executed after at least one successful policy read. This |
| 207 // variable contains the thunk if it is necessary. | 205 // variable contains the thunk if it is necessary. |
| 208 base::Closure pending_connect_; | 206 base::Closure pending_connect_; |
| 209 }; | 207 }; |
| 210 | 208 |
| 211 } // namespace remoting | 209 } // namespace remoting |
| 212 | 210 |
| 213 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); | 211 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); |
| 214 | 212 |
| 215 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 213 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| OLD | NEW |