Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: remoting/host/host_script_object.h

Issue 7134023: Notify calling web-app when Host plugin becomes connected to a client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove blank line from rebase. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/host_script_object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698