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

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

Issue 11412305: Use AutoThread in ChromotingHostContext & NPAPI plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years 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_mock_objects.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) 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 ////////////////////////////////////////////////////////// 281 //////////////////////////////////////////////////////////
282 // Me2Me host state. 282 // Me2Me host state.
283 283
284 // Platform-specific installation & configuration implementation. 284 // Platform-specific installation & configuration implementation.
285 scoped_ptr<DaemonController> daemon_controller_; 285 scoped_ptr<DaemonController> daemon_controller_;
286 286
287 // TODO(sergeyu): Replace this thread with 287 // TODO(sergeyu): Replace this thread with
288 // SequencedWorkerPool. Problem is that SequencedWorkerPool relies 288 // SequencedWorkerPool. Problem is that SequencedWorkerPool relies
289 // on MessageLoopProxy::current(). 289 // on MessageLoopProxy::current().
290 base::Thread worker_thread_; 290 scoped_refptr<AutoThreadTaskRunner> worker_thread_;
291 291
292 ////////////////////////////////////////////////////////// 292 //////////////////////////////////////////////////////////
293 // Plugin state used for both Ir2Me and Me2Me. 293 // Plugin state used for both Ir2Me and Me2Me.
294 294
295 // Used to cancel pending tasks for this object when it is destroyed. 295 // Used to cancel pending tasks for this object when it is destroyed.
296 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; 296 base::WeakPtrFactory<HostNPScriptObject> weak_factory_;
297 base::WeakPtr<HostNPScriptObject> weak_ptr_; 297 base::WeakPtr<HostNPScriptObject> weak_ptr_;
298 298
299 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); 299 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject);
300 }; 300 };
301 301
302 } // namespace remoting 302 } // namespace remoting
303 303
304 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ 304 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698