OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/audio_sync_reader.h" | 5 #include "content/browser/renderer_host/audio_sync_reader.h" |
6 | 6 |
7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 | 9 |
10 AudioSyncReader::AudioSyncReader(base::SharedMemory* shared_memory) | 10 AudioSyncReader::AudioSyncReader(base::SharedMemory* shared_memory) |
11 : shared_memory_(shared_memory) { | 11 : shared_memory_(shared_memory) { |
12 } | 12 } |
13 | 13 |
14 AudioSyncReader::~AudioSyncReader() { | 14 AudioSyncReader::~AudioSyncReader() { |
15 } | 15 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 bool AudioSyncReader::PrepareForeignSocketHandle( | 55 bool AudioSyncReader::PrepareForeignSocketHandle( |
56 base::ProcessHandle process_handle, | 56 base::ProcessHandle process_handle, |
57 base::FileDescriptor* foreign_handle) { | 57 base::FileDescriptor* foreign_handle) { |
58 foreign_handle->fd = foreign_socket_->handle(); | 58 foreign_handle->fd = foreign_socket_->handle(); |
59 foreign_handle->auto_close = false; | 59 foreign_handle->auto_close = false; |
60 if (foreign_handle->fd != -1) | 60 if (foreign_handle->fd != -1) |
61 return true; | 61 return true; |
62 return false; | 62 return false; |
63 } | 63 } |
64 #endif | 64 #endif |
OLD | NEW |