| OLD | NEW |
| 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 Loading... |
| 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 scoped_refptr<AutoThreadTaskRunner> worker_thread_; | 290 base::Thread 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_ |
| OLD | NEW |