| 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_CHROMOTING_HOST_CONTEXT_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ |
| 6 #define REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ | 6 #define REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/single_thread_task_runner.h" | |
| 11 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 12 | 11 |
| 12 namespace base { |
| 13 class SingleThreadTaskRunner; |
| 14 } // namespace base |
| 15 |
| 13 namespace net { | 16 namespace net { |
| 14 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
| 15 } // namespace net | 18 } // namespace net |
| 16 | 19 |
| 17 namespace remoting { | 20 namespace remoting { |
| 18 class AutoThreadTaskRunner; | 21 class AutoThreadTaskRunner; |
| 19 | 22 |
| 20 // A class that manages threads and running context for the chromoting host | 23 // A class that manages threads and running context for the chromoting host |
| 21 // process. This class is virtual only for testing purposes (see below). | 24 // process. This class is virtual only for testing purposes (see below). |
| 22 class ChromotingHostContext { | 25 class ChromotingHostContext { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 scoped_refptr<AutoThreadTaskRunner> ui_task_runner_; | 104 scoped_refptr<AutoThreadTaskRunner> ui_task_runner_; |
| 102 | 105 |
| 103 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | 106 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
| 104 | 107 |
| 105 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); | 108 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); |
| 106 }; | 109 }; |
| 107 | 110 |
| 108 } // namespace remoting | 111 } // namespace remoting |
| 109 | 112 |
| 110 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ | 113 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ |
| OLD | NEW |