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_HOST_SCRIPT_OBJECT_H_ | 5 #ifndef REMOTING_HOST_HOST_SCRIPT_OBJECT_H_ |
6 #define REMOTING_HOST_HOST_SCRIPT_OBJECT_H_ | 6 #define REMOTING_HOST_HOST_SCRIPT_OBJECT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 bool GetProperty(const std::string& property_name, NPVariant* result); | 57 bool GetProperty(const std::string& property_name, NPVariant* result); |
58 bool SetProperty(const std::string& property_name, const NPVariant* value); | 58 bool SetProperty(const std::string& property_name, const NPVariant* value); |
59 bool RemoveProperty(const std::string& property_name); | 59 bool RemoveProperty(const std::string& property_name); |
60 bool Enumerate(std::vector<std::string>* values); | 60 bool Enumerate(std::vector<std::string>* values); |
61 | 61 |
62 // remoting::HostStatusObserver implementation. | 62 // remoting::HostStatusObserver implementation. |
63 virtual void OnSignallingConnected(remoting::SignalStrategy* signal_strategy, | 63 virtual void OnSignallingConnected(remoting::SignalStrategy* signal_strategy, |
64 const std::string& full_jid) OVERRIDE; | 64 const std::string& full_jid) OVERRIDE; |
65 virtual void OnSignallingDisconnected() OVERRIDE; | 65 virtual void OnSignallingDisconnected() OVERRIDE; |
66 virtual void OnAccessDenied() OVERRIDE; | 66 virtual void OnAccessDenied() OVERRIDE; |
| 67 virtual void OnAuthenticatedClientsChanged(int clients_connected) OVERRIDE; |
67 virtual void OnShutdown() OVERRIDE; | 68 virtual void OnShutdown() OVERRIDE; |
68 | 69 |
69 private: | 70 private: |
70 enum State { | 71 enum State { |
71 kDisconnected, | 72 kDisconnected, |
72 kRequestedAccessCode, | 73 kRequestedAccessCode, |
73 kReceivedAccessCode, | 74 kReceivedAccessCode, |
74 kConnected, | 75 kConnected, |
75 kAffirmingConnection, | 76 kAffirmingConnection, |
76 kError | 77 kError |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 140 |
140 base::WaitableEvent disconnected_event_; | 141 base::WaitableEvent disconnected_event_; |
141 base::CancellationFlag destructing_; | 142 base::CancellationFlag destructing_; |
142 }; | 143 }; |
143 | 144 |
144 } // namespace remoting | 145 } // namespace remoting |
145 | 146 |
146 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); | 147 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); |
147 | 148 |
148 #endif // REMOTING_HOST_HOST_SCRIPT_OBJECT_H_ | 149 #endif // REMOTING_HOST_HOST_SCRIPT_OBJECT_H_ |
OLD | NEW |