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 #include "remoting/host/chromoting_host_context.h" | 5 #include "remoting/host/chromoting_host_context.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "remoting/base/auto_thread.h" | 10 #include "remoting/base/auto_thread.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 !context->video_capture_task_runner_.get() || | 58 !context->video_capture_task_runner_.get() || |
59 !context->video_encode_task_runner_.get() || | 59 !context->video_encode_task_runner_.get() || |
60 !context->url_request_context_getter_.get()) { | 60 !context->url_request_context_getter_.get()) { |
61 context.reset(); | 61 context.reset(); |
62 } | 62 } |
63 | 63 |
64 return context.Pass(); | 64 return context.Pass(); |
65 } | 65 } |
66 | 66 |
67 scoped_refptr<AutoThreadTaskRunner> | 67 scoped_refptr<AutoThreadTaskRunner> |
68 ChromotingHostContext::audio_task_runner() { | 68 ChromotingHostContext::audio_task_runner() const { |
69 return audio_task_runner_; | 69 return audio_task_runner_; |
70 } | 70 } |
71 | 71 |
72 scoped_refptr<AutoThreadTaskRunner> | 72 scoped_refptr<AutoThreadTaskRunner> |
73 ChromotingHostContext::file_task_runner() { | 73 ChromotingHostContext::file_task_runner() const { |
74 return file_task_runner_; | 74 return file_task_runner_; |
75 } | 75 } |
76 | 76 |
77 scoped_refptr<AutoThreadTaskRunner> | 77 scoped_refptr<AutoThreadTaskRunner> |
78 ChromotingHostContext::input_task_runner() { | 78 ChromotingHostContext::input_task_runner() const { |
79 return input_task_runner_; | 79 return input_task_runner_; |
80 } | 80 } |
81 | 81 |
82 scoped_refptr<AutoThreadTaskRunner> | 82 scoped_refptr<AutoThreadTaskRunner> |
83 ChromotingHostContext::network_task_runner() { | 83 ChromotingHostContext::network_task_runner() const { |
84 return network_task_runner_; | 84 return network_task_runner_; |
85 } | 85 } |
86 | 86 |
87 scoped_refptr<AutoThreadTaskRunner> | 87 scoped_refptr<AutoThreadTaskRunner> |
88 ChromotingHostContext::ui_task_runner() { | 88 ChromotingHostContext::ui_task_runner() const { |
89 return ui_task_runner_; | 89 return ui_task_runner_; |
90 } | 90 } |
91 | 91 |
92 scoped_refptr<AutoThreadTaskRunner> | 92 scoped_refptr<AutoThreadTaskRunner> |
93 ChromotingHostContext::video_capture_task_runner() { | 93 ChromotingHostContext::video_capture_task_runner() const { |
94 return video_capture_task_runner_; | 94 return video_capture_task_runner_; |
95 } | 95 } |
96 | 96 |
97 scoped_refptr<AutoThreadTaskRunner> | 97 scoped_refptr<AutoThreadTaskRunner> |
98 ChromotingHostContext::video_encode_task_runner() { | 98 ChromotingHostContext::video_encode_task_runner() const { |
99 return video_encode_task_runner_; | 99 return video_encode_task_runner_; |
100 } | 100 } |
101 | 101 |
102 scoped_refptr<net::URLRequestContextGetter> | 102 scoped_refptr<net::URLRequestContextGetter> |
103 ChromotingHostContext::url_request_context_getter() { | 103 ChromotingHostContext::url_request_context_getter() const { |
104 return url_request_context_getter_; | 104 return url_request_context_getter_; |
105 } | 105 } |
106 | 106 |
107 } // namespace remoting | 107 } // namespace remoting |
OLD | NEW |