| 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 "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 base::SingleThreadTaskRunner* ChromotingHostContext::ui_task_runner() { | 106 base::SingleThreadTaskRunner* ChromotingHostContext::ui_task_runner() { |
| 107 return ui_task_runner_; | 107 return ui_task_runner_; |
| 108 } | 108 } |
| 109 | 109 |
| 110 const scoped_refptr<net::URLRequestContextGetter>& | 110 const scoped_refptr<net::URLRequestContextGetter>& |
| 111 ChromotingHostContext::url_request_context_getter() { | 111 ChromotingHostContext::url_request_context_getter() { |
| 112 DCHECK(url_request_context_getter_.get()); | 112 DCHECK(url_request_context_getter_.get()); |
| 113 return url_request_context_getter_; | 113 return url_request_context_getter_; |
| 114 } | 114 } |
| 115 | 115 |
| 116 #if defined(OS_LINUX) |
| 117 FilePath& ChromotingHostContext::audio_capturer_pipe() { |
| 118 return audio_capturer_pipe_; |
| 119 } |
| 120 |
| 121 void ChromotingHostContext::set_audio_capturer_pipe(const FilePath& value) { |
| 122 DCHECK(ui_task_runner_->BelongsToCurrentThread()); |
| 123 audio_capturer_pipe_ = value; |
| 124 } |
| 125 #endif // OS_LINUX |
| 126 |
| 116 } // namespace remoting | 127 } // namespace remoting |
| OLD | NEW |