| Index: mojo/edk/system/transport_data.h
|
| diff --git a/third_party/mojo/src/mojo/edk/system/transport_data.h b/mojo/edk/system/transport_data.h
|
| similarity index 94%
|
| copy from third_party/mojo/src/mojo/edk/system/transport_data.h
|
| copy to mojo/edk/system/transport_data.h
|
| index 20bb80fe3c37164a3a103273ddd203b3fbd9396b..7d51ee9a1ad7e391f7ed3cd754af44807376f43b 100644
|
| --- a/third_party/mojo/src/mojo/edk/system/transport_data.h
|
| +++ b/mojo/edk/system/transport_data.h
|
| @@ -19,9 +19,7 @@
|
| #include "mojo/public/cpp/system/macros.h"
|
|
|
| namespace mojo {
|
| -namespace system {
|
| -
|
| -class Channel;
|
| +namespace edk {
|
|
|
| // This class is used by |MessageInTransit| to represent handles (|Dispatcher|s)
|
| // in various stages of serialization.
|
| @@ -89,14 +87,14 @@ class MOJO_SYSTEM_IMPL_EXPORT TransportData {
|
| // The maximum total number of platform handles that may be attached.
|
| static size_t GetMaxPlatformHandles();
|
|
|
| - TransportData(scoped_ptr<DispatcherVector> dispatchers, Channel* channel);
|
| + explicit TransportData(scoped_ptr<DispatcherVector> dispatchers);
|
|
|
| // This is used for users of |MessageInTransit|/|TransportData|/|RawChannel|
|
| // that want to simply transport data and platform handles, and not
|
| // |Dispatcher|s. (|Header| will be present, and zero except for
|
| // |num_platform_handles|, and |platform_handle_table_offset| if necessary.)
|
| explicit TransportData(
|
| - embedder::ScopedPlatformHandleVectorPtr platform_handles,
|
| + ScopedPlatformHandleVectorPtr platform_handles,
|
| size_t serialized_platform_handle_size);
|
|
|
| ~TransportData();
|
| @@ -111,10 +109,10 @@ class MOJO_SYSTEM_IMPL_EXPORT TransportData {
|
|
|
| // Gets attached platform-specific handles; this may return null if there are
|
| // none. Note that the caller may mutate the set of platform-specific handles.
|
| - const embedder::PlatformHandleVector* platform_handles() const {
|
| + const PlatformHandleVector* platform_handles() const {
|
| return platform_handles_.get();
|
| }
|
| - embedder::PlatformHandleVector* platform_handles() {
|
| + PlatformHandleVector* platform_handles() {
|
| return platform_handles_.get();
|
| }
|
|
|
| @@ -143,8 +141,7 @@ class MOJO_SYSTEM_IMPL_EXPORT TransportData {
|
| static scoped_ptr<DispatcherVector> DeserializeDispatchers(
|
| const void* buffer,
|
| size_t buffer_size,
|
| - embedder::ScopedPlatformHandleVectorPtr platform_handles,
|
| - Channel* channel);
|
| + ScopedPlatformHandleVectorPtr platform_handles);
|
|
|
| private:
|
| // To allow us to make compile-assertions about |Header|, etc. in the .cc
|
| @@ -180,12 +177,12 @@ class MOJO_SYSTEM_IMPL_EXPORT TransportData {
|
| // transport). The vector (if any) owns the handles that it contains (and is
|
| // responsible for closing them).
|
| // TODO(vtl): With C++11, change it to a vector of |ScopedPlatformHandle|s.
|
| - embedder::ScopedPlatformHandleVectorPtr platform_handles_;
|
| + ScopedPlatformHandleVectorPtr platform_handles_;
|
|
|
| MOJO_DISALLOW_COPY_AND_ASSIGN(TransportData);
|
| };
|
|
|
| -} // namespace system
|
| +} // namespace edk
|
| } // namespace mojo
|
|
|
| #endif // MOJO_EDK_SYSTEM_TRANSPORT_DATA_H_
|
|
|