| 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..24787f22e205f01f6592f38785e14e9ef92d58bd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/mojo/MojoHandle.h
|
| @@ -0,0 +1,32 @@
|
| +// 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 "core/CoreExport.h"
|
| +#include "mojo/public/cpp/system/handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class CORE_EXPORT MojoHandle : public GarbageCollectedFinalized<MojoHandle>,
|
| + public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +
|
| + public:
|
| + MojoHandle(mojo::ScopedHandle);
|
| + virtual ~MojoHandle();
|
| +
|
| + MojoResult close();
|
| +
|
| + DEFINE_INLINE_TRACE() {}
|
| +
|
| + private:
|
| + mojo::ScopedHandle m_handle;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // MojoHandle_h
|
|
|