| 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 "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" |
| 7 #include "content/child/child_process.h" | 8 #include "content/child/child_process.h" |
| 8 #include "content/common/sandbox_util.h" | 9 #include "content/common/sandbox_util.h" |
| 9 | 10 |
| 10 #if defined(OS_WIN) || defined(OS_MACOSX) | 11 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 11 #include "content/public/common/sandbox_init.h" | 12 #include "content/public/common/sandbox_init.h" |
| 12 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 13 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 PepperProxyChannelDelegateImpl::~PepperProxyChannelDelegateImpl() {} | 17 PepperProxyChannelDelegateImpl::~PepperProxyChannelDelegateImpl() {} |
| (...skipping 28 matching lines...) Expand all Loading... |
| 45 BrokerDuplicateSharedMemoryHandle(handle, remote_pid, &duped_handle); | 46 BrokerDuplicateSharedMemoryHandle(handle, remote_pid, &duped_handle); |
| 46 if (success) | 47 if (success) |
| 47 return duped_handle; | 48 return duped_handle; |
| 48 return base::SharedMemory::NULLHandle(); | 49 return base::SharedMemory::NULLHandle(); |
| 49 #else | 50 #else |
| 50 return base::SharedMemory::DuplicateHandle(handle); | 51 return base::SharedMemory::DuplicateHandle(handle); |
| 51 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 52 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 52 } | 53 } |
| 53 | 54 |
| 54 } // namespace content | 55 } // namespace content |
| OLD | NEW |