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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const NPVariant* args, | 62 const NPVariant* args, |
63 uint32_t argCount, | 63 uint32_t argCount, |
64 NPVariant* result); | 64 NPVariant* result); |
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() 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 OnShutdown() OVERRIDE; | 75 virtual void OnShutdown() OVERRIDE; |
76 | 76 |
77 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). | 77 // 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 | 78 // 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. | 79 // standard LOG(INFO) and it will be sent to this method. |
80 void PostLogDebugInfo(const std::string& message); | 80 void PostLogDebugInfo(const std::string& message); |
81 | 81 |
82 private: | 82 private: |
(...skipping 129 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 | 212 // 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 | 213 // 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 | 214 // it can be executed after at least one successful policy read. This |
215 // variable contains the thunk if it is necessary. | 215 // variable contains the thunk if it is necessary. |
216 base::Closure pending_connect_; | 216 base::Closure pending_connect_; |
217 }; | 217 }; |
218 | 218 |
219 } // namespace remoting | 219 } // namespace remoting |
220 | 220 |
221 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 221 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
OLD | NEW |