| 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/system/platform_handle_dispatcher.h" | 5 #include "mojo/edk/system/platform_handle_dispatcher.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| 11 using mojo::util::RefPtr; |
| 12 |
| 11 namespace mojo { | 13 namespace mojo { |
| 12 namespace system { | 14 namespace system { |
| 13 | 15 |
| 14 namespace { | 16 namespace { |
| 15 | 17 |
| 16 const size_t kInvalidPlatformHandleIndex = static_cast<size_t>(-1); | 18 const size_t kInvalidPlatformHandleIndex = static_cast<size_t>(-1); |
| 17 | 19 |
| 18 struct SerializedPlatformHandleDispatcher { | 20 struct SerializedPlatformHandleDispatcher { |
| 19 size_t platform_handle_index; // (Or |kInvalidPlatformHandleIndex|.) | 21 size_t platform_handle_index; // (Or |kInvalidPlatformHandleIndex|.) |
| 20 }; | 22 }; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } else { | 109 } else { |
| 108 serialization->platform_handle_index = kInvalidPlatformHandleIndex; | 110 serialization->platform_handle_index = kInvalidPlatformHandleIndex; |
| 109 } | 111 } |
| 110 | 112 |
| 111 *actual_size = sizeof(SerializedPlatformHandleDispatcher); | 113 *actual_size = sizeof(SerializedPlatformHandleDispatcher); |
| 112 return true; | 114 return true; |
| 113 } | 115 } |
| 114 | 116 |
| 115 } // namespace system | 117 } // namespace system |
| 116 } // namespace mojo | 118 } // namespace mojo |
| OLD | NEW |