| Index: third_party/WebKit/Source/core/mojo/MojoHandle.h
|
| diff --git a/third_party/WebKit/Source/core/mojo/MojoHandle.h b/third_party/WebKit/Source/core/mojo/MojoHandle.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..432e868e0aff630e2aba8693587b9a2316de66fc
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/mojo/MojoHandle.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MojoHandle_h
|
| +#define MojoHandle_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "mojo/public/cpp/system/core.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class MojoReadMessageOptions;
|
| +class MojoReadMessageResult;
|
| +class MojoWatchCallback;
|
| +class MojoWatcher;
|
| +class MojoWatchOptions;
|
| +class MojoWriteMessageOptions;
|
| +class ScriptState;
|
| +
|
| +class MojoHandle final : public GarbageCollectedFinalized<MojoHandle>,
|
| + public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +
|
| + public:
|
| + CORE_EXPORT static MojoHandle* create(mojo::ScopedHandle);
|
| +
|
| + void close();
|
| + MojoWatcher* watch(ScriptState*, const MojoWatchOptions&, MojoWatchCallback*);
|
| + MojoResult writeMessage(const MojoWriteMessageOptions&);
|
| + void readMessage(const MojoReadMessageOptions&, MojoReadMessageResult&);
|
| +
|
| + DEFINE_INLINE_TRACE() {}
|
| +
|
| + private:
|
| + explicit MojoHandle(mojo::ScopedHandle);
|
| +
|
| + mojo::ScopedHandle m_handle;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // MojoHandle_h
|
|
|