| 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 #ifndef MOJO_EDK_SYSTEM_TRANSPORT_DATA_H_ | 5 #ifndef MOJO_EDK_SYSTEM_TRANSPORT_DATA_H_ |
| 6 #define MOJO_EDK_SYSTEM_TRANSPORT_DATA_H_ | 6 #define MOJO_EDK_SYSTEM_TRANSPORT_DATA_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/aligned_memory.h" | 12 #include "base/memory/aligned_memory.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "mojo/edk/embedder/platform_handle.h" | 15 #include "mojo/edk/embedder/platform_handle.h" |
| 16 #include "mojo/edk/embedder/platform_handle_vector.h" | 16 #include "mojo/edk/embedder/platform_handle_vector.h" |
| 17 #include "mojo/edk/system/dispatcher.h" | 17 #include "mojo/edk/system/dispatcher.h" |
| 18 #include "mojo/edk/system/system_impl_export.h" | 18 #include "mojo/edk/system/system_impl_export.h" |
| 19 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 19 #include "mojo/public/cpp/system/macros.h" |
| 20 | 20 |
| 21 namespace mojo { | 21 namespace mojo { |
| 22 namespace edk { | 22 namespace edk { |
| 23 | 23 |
| 24 // This class is used by |MessageInTransit| to represent handles (|Dispatcher|s) | 24 // This class is used by |MessageInTransit| to represent handles (|Dispatcher|s) |
| 25 // in various stages of serialization. | 25 // in various stages of serialization. |
| 26 // | 26 // |
| 27 // The stages are: | 27 // The stages are: |
| 28 // - Before reaching |TransportData|: Turn |DispatcherTransport|s into | 28 // - Before reaching |TransportData|: Turn |DispatcherTransport|s into |
| 29 // |Dispatcher|s that are "owned" by (and attached to) a |MessageInTransit|. | 29 // |Dispatcher|s that are "owned" by (and attached to) a |MessageInTransit|. |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // TODO(vtl): With C++11, change it to a vector of |ScopedPlatformHandle|s. | 175 // TODO(vtl): With C++11, change it to a vector of |ScopedPlatformHandle|s. |
| 176 ScopedPlatformHandleVectorPtr platform_handles_; | 176 ScopedPlatformHandleVectorPtr platform_handles_; |
| 177 | 177 |
| 178 MOJO_DISALLOW_COPY_AND_ASSIGN(TransportData); | 178 MOJO_DISALLOW_COPY_AND_ASSIGN(TransportData); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace edk | 181 } // namespace edk |
| 182 } // namespace mojo | 182 } // namespace mojo |
| 183 | 183 |
| 184 #endif // MOJO_EDK_SYSTEM_TRANSPORT_DATA_H_ | 184 #endif // MOJO_EDK_SYSTEM_TRANSPORT_DATA_H_ |
| OLD | NEW |