| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/memory/shared_memory_handle.h" | 5 #include "base/memory/shared_memory_handle.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace base { | 9 namespace base { |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 void SharedMemoryHandle::SetOwnershipPassesToIPC(bool ownership_passes) { | 71 void SharedMemoryHandle::SetOwnershipPassesToIPC(bool ownership_passes) { |
| 72 ownership_passes_to_ipc_ = ownership_passes; | 72 ownership_passes_to_ipc_ = ownership_passes; |
| 73 } | 73 } |
| 74 | 74 |
| 75 bool SharedMemoryHandle::OwnershipPassesToIPC() const { | 75 bool SharedMemoryHandle::OwnershipPassesToIPC() const { |
| 76 return ownership_passes_to_ipc_; | 76 return ownership_passes_to_ipc_; |
| 77 } | 77 } |
| 78 | 78 |
| 79 bool GetIDFromSharedMemoryHandle(const SharedMemoryHandle& handle, |
| 80 SharedMemoryHandleID* id) { |
| 81 // TODO(hajimehoshi): Implement this. |
| 82 return true; |
| 83 } |
| 84 |
| 85 std::string GetSharedMemoryHandleIDString(const SharedMemoryHandleID& id) { |
| 86 // TODO(hajimehoshi): Implement this. |
| 87 return ""; |
| 88 } |
| 89 |
| 79 } // namespace base | 90 } // namespace base |
| OLD | NEW |