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

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

Issue 9005034: Refactor SignalStrategy so that it can be reused for multiple connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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/log_to_server_unittest.cc ('k') | remoting/host/plugin/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_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const NPVariant* args, 61 const NPVariant* args,
62 uint32_t argCount, 62 uint32_t argCount,
63 NPVariant* result); 63 NPVariant* result);
64 bool HasProperty(const std::string& property_name); 64 bool HasProperty(const std::string& property_name);
65 bool GetProperty(const std::string& property_name, NPVariant* result); 65 bool GetProperty(const std::string& property_name, NPVariant* result);
66 bool SetProperty(const std::string& property_name, const NPVariant* value); 66 bool SetProperty(const std::string& property_name, const NPVariant* value);
67 bool RemoveProperty(const std::string& property_name); 67 bool RemoveProperty(const std::string& property_name);
68 bool Enumerate(std::vector<std::string>* values); 68 bool Enumerate(std::vector<std::string>* values);
69 69
70 // remoting::HostStatusObserver implementation. 70 // remoting::HostStatusObserver implementation.
71 virtual void OnSignallingConnected(remoting::SignalStrategy* signal_strategy, 71 virtual void OnSignallingConnected(
72 const std::string& full_jid) OVERRIDE; 72 remoting::SignalStrategy* signal_strategy) OVERRIDE;
73 virtual void OnSignallingDisconnected() OVERRIDE; 73 virtual void OnSignallingDisconnected() OVERRIDE;
74 virtual void OnAccessDenied() OVERRIDE; 74 virtual void OnAccessDenied() OVERRIDE;
75 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 75 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
76 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 76 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
77 virtual void OnShutdown() OVERRIDE; 77 virtual void OnShutdown() OVERRIDE;
78 78
79 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). 79 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread).
80 // This should only be called by HostLogHandler. To log to the UI, use the 80 // This should only be called by HostLogHandler. To log to the UI, use the
81 // standard LOG(INFO) and it will be sent to this method. 81 // standard LOG(INFO) and it will be sent to this method.
82 void PostLogDebugInfo(const std::string& message); 82 void PostLogDebugInfo(const std::string& message);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // it can be executed after at least one successful policy read. This 215 // it can be executed after at least one successful policy read. This
216 // variable contains the thunk if it is necessary. 216 // variable contains the thunk if it is necessary.
217 base::Closure pending_connect_; 217 base::Closure pending_connect_;
218 }; 218 };
219 219
220 } // namespace remoting 220 } // namespace remoting
221 221
222 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); 222 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject);
223 223
224 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ 224 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/host/log_to_server_unittest.cc ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698