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

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

Issue 7867019: Access Session::config() and Session::jid() on the correct thread only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 9 years, 3 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/host_status_observer.h ('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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 bool GetProperty(const std::string& property_name, NPVariant* result); 67 bool GetProperty(const std::string& property_name, NPVariant* result);
68 bool SetProperty(const std::string& property_name, const NPVariant* value); 68 bool SetProperty(const std::string& property_name, const NPVariant* value);
69 bool RemoveProperty(const std::string& property_name); 69 bool RemoveProperty(const std::string& property_name);
70 bool Enumerate(std::vector<std::string>* values); 70 bool Enumerate(std::vector<std::string>* values);
71 71
72 // remoting::HostStatusObserver implementation. 72 // remoting::HostStatusObserver implementation.
73 virtual void OnSignallingConnected(remoting::SignalStrategy* signal_strategy, 73 virtual void OnSignallingConnected(remoting::SignalStrategy* signal_strategy,
74 const std::string& full_jid) OVERRIDE; 74 const std::string& full_jid) OVERRIDE;
75 virtual void OnSignallingDisconnected() OVERRIDE; 75 virtual void OnSignallingDisconnected() OVERRIDE;
76 virtual void OnAccessDenied() OVERRIDE; 76 virtual void OnAccessDenied() OVERRIDE;
77 virtual void OnClientAuthenticated( 77 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
78 remoting::protocol::ConnectionToClient* client) OVERRIDE; 78 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
79 virtual void OnClientDisconnected(
80 remoting::protocol::ConnectionToClient* client) OVERRIDE;
81 virtual void OnShutdown() OVERRIDE; 79 virtual void OnShutdown() OVERRIDE;
82 80
83 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). 81 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread).
84 // This should only be called by HostLogHandler. To log to the UI, use the 82 // This should only be called by HostLogHandler. To log to the UI, use the
85 // standard LOG(INFO) and it will be sent to this method. 83 // standard LOG(INFO) and it will be sent to this method.
86 void PostLogDebugInfo(const std::string& message); 84 void PostLogDebugInfo(const std::string& message);
87 85
88 private: 86 private:
89 enum State { 87 enum State {
90 kDisconnected, 88 kDisconnected,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // it can be executed after at least one successful policy read. This 204 // it can be executed after at least one successful policy read. This
207 // variable contains the thunk if it is necessary. 205 // variable contains the thunk if it is necessary.
208 base::Closure pending_connect_; 206 base::Closure pending_connect_;
209 }; 207 };
210 208
211 } // namespace remoting 209 } // namespace remoting
212 210
213 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); 211 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject);
214 212
215 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ 213 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/host/host_status_observer.h ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698