OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 bool HasProperty(const std::string& property_name); | 65 bool HasProperty(const std::string& property_name); |
66 bool GetProperty(const std::string& property_name, NPVariant* result); | 66 bool GetProperty(const std::string& property_name, NPVariant* result); |
67 bool SetProperty(const std::string& property_name, const NPVariant* value); | 67 bool SetProperty(const std::string& property_name, const NPVariant* value); |
68 bool RemoveProperty(const std::string& property_name); | 68 bool RemoveProperty(const std::string& property_name); |
69 bool Enumerate(std::vector<std::string>* values); | 69 bool Enumerate(std::vector<std::string>* values); |
70 | 70 |
71 // remoting::HostStatusObserver implementation. | 71 // remoting::HostStatusObserver implementation. |
72 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; | 72 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; |
73 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | 73 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
74 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | 74 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
| 75 virtual void OnClientIpAddress(const std::string& jid, |
| 76 const std::string& channel_name, |
| 77 const net::IPEndPoint& end_point) OVERRIDE; |
75 virtual void OnShutdown() OVERRIDE; | 78 virtual void OnShutdown() OVERRIDE; |
76 | 79 |
77 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). | 80 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). |
78 // This should only be called by HostLogHandler. To log to the UI, use the | 81 // This should only be called by HostLogHandler. To log to the UI, use the |
79 // standard LOG(INFO) and it will be sent to this method. | 82 // standard LOG(INFO) and it will be sent to this method. |
80 void PostLogDebugInfo(const std::string& message); | 83 void PostLogDebugInfo(const std::string& message); |
81 | 84 |
82 private: | 85 private: |
83 // These state values are duplicated in the JS code. Remember to update both | 86 // These state values are duplicated in the JS code. Remember to update both |
84 // copies when making changes. | 87 // copies when making changes. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // On startup, it is possible to have Connect() called before the policy read | 215 // On startup, it is possible to have Connect() called before the policy read |
213 // is completed. Rather than just failing, we thunk the connection call so | 216 // is completed. Rather than just failing, we thunk the connection call so |
214 // it can be executed after at least one successful policy read. This | 217 // it can be executed after at least one successful policy read. This |
215 // variable contains the thunk if it is necessary. | 218 // variable contains the thunk if it is necessary. |
216 base::Closure pending_connect_; | 219 base::Closure pending_connect_; |
217 }; | 220 }; |
218 | 221 |
219 } // namespace remoting | 222 } // namespace remoting |
220 | 223 |
221 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 224 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
OLD | NEW |