| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 IPC::PlatformFileForTransit CreateFileForProcess(base::FilePath file_path, | 284 IPC::PlatformFileForTransit CreateFileForProcess(base::FilePath file_path, |
| 285 base::ProcessHandle process) { | 285 base::ProcessHandle process) { |
| 286 DCHECK_CURRENTLY_ON(BrowserThread::FILE); | 286 DCHECK_CURRENTLY_ON(BrowserThread::FILE); |
| 287 base::File dump_file(file_path, | 287 base::File dump_file(file_path, |
| 288 base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_APPEND); | 288 base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_APPEND); |
| 289 if (!dump_file.IsValid()) { | 289 if (!dump_file.IsValid()) { |
| 290 VLOG(1) << "Could not open AEC dump file, error=" | 290 VLOG(1) << "Could not open AEC dump file, error=" |
| 291 << dump_file.error_details(); | 291 << dump_file.error_details(); |
| 292 return IPC::InvalidPlatformFileForTransit(); | 292 return IPC::InvalidPlatformFileForTransit(); |
| 293 } | 293 } |
| 294 return IPC::TakeFileHandleForProcess(dump_file.Pass(), process); | 294 return IPC::TakeFileHandleForProcess(std::move(dump_file), process); |
| 295 } | 295 } |
| 296 | 296 |
| 297 #if defined(ENABLE_WEBRTC) | 297 #if defined(ENABLE_WEBRTC) |
| 298 | 298 |
| 299 // Allow us to only run the trial in the first renderer. | 299 // Allow us to only run the trial in the first renderer. |
| 300 bool has_done_stun_trials = false; | 300 bool has_done_stun_trials = false; |
| 301 | 301 |
| 302 // Does nothing. Just to avoid races between enable and disable. | 302 // Does nothing. Just to avoid races between enable and disable. |
| 303 void DisableAecDumpOnFileThread() { | 303 void DisableAecDumpOnFileThread() { |
| 304 DCHECK_CURRENTLY_ON(BrowserThread::FILE); | 304 DCHECK_CURRENTLY_ON(BrowserThread::FILE); |
| (...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2757 void RenderProcessHostImpl::GetAudioOutputControllers( | 2757 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2758 const GetAudioOutputControllersCallback& callback) const { | 2758 const GetAudioOutputControllersCallback& callback) const { |
| 2759 audio_renderer_host()->GetOutputControllers(callback); | 2759 audio_renderer_host()->GetOutputControllers(callback); |
| 2760 } | 2760 } |
| 2761 | 2761 |
| 2762 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2762 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2763 return bluetooth_dispatcher_host_.get(); | 2763 return bluetooth_dispatcher_host_.get(); |
| 2764 } | 2764 } |
| 2765 | 2765 |
| 2766 } // namespace content | 2766 } // namespace content |
| OLD | NEW |