OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/edk/embedder/simple_platform_shared_buffer.h" | 5 #include "mojo/edk/embedder/simple_platform_shared_buffer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "mojo/edk/embedder/platform_handle_utils.h" | 12 #include "mojo/edk/embedder/platform_handle_utils.h" |
11 | 13 |
12 namespace mojo { | 14 namespace mojo { |
13 namespace edk { | 15 namespace edk { |
14 | 16 |
15 // static | 17 // static |
16 SimplePlatformSharedBuffer* SimplePlatformSharedBuffer::Create( | 18 SimplePlatformSharedBuffer* SimplePlatformSharedBuffer::Create( |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void* SimplePlatformSharedBufferMapping::GetBase() const { | 103 void* SimplePlatformSharedBufferMapping::GetBase() const { |
102 return base_; | 104 return base_; |
103 } | 105 } |
104 | 106 |
105 size_t SimplePlatformSharedBufferMapping::GetLength() const { | 107 size_t SimplePlatformSharedBufferMapping::GetLength() const { |
106 return length_; | 108 return length_; |
107 } | 109 } |
108 | 110 |
109 } // namespace edk | 111 } // namespace edk |
110 } // namespace mojo | 112 } // namespace mojo |
OLD | NEW |