| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 #include <sys/mman.h> // For |PROT_...|. | 8 #include <sys/mman.h> // For |PROT_...|. |
| 9 #include <sys/types.h> // For |off_t|. | 9 #include <sys/types.h> // For |off_t|. |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 LOG(ERROR) << "Shared memory region has the wrong size"; | 63 LOG(ERROR) << "Shared memory region has the wrong size"; |
| 64 return false; | 64 return false; |
| 65 } | 65 } |
| 66 | 66 |
| 67 handle_ = platform_handle.Pass(); | 67 handle_ = platform_handle.Pass(); |
| 68 return true; | 68 return true; |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace embedder | 71 } // namespace embedder |
| 72 } // namespace mojo | 72 } // namespace mojo |
| OLD | NEW |