Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: third_party/WebKit/Source/core/mojo/Mojo.h

Issue 2720873002: Implements JS bindings for mojo shared buffer. (Closed)
Patch Set: rebaseline2 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_h 5 #ifndef Mojo_h
6 #define Mojo_h 6 #define Mojo_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "mojo/public/cpp/system/core.h" 9 #include "mojo/public/cpp/system/core.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class MojoCreateMessagePipeResult; 13 class MojoCreateMessagePipeResult;
14 class MojoCreateSharedBufferResult;
14 15
15 class Mojo final : public GarbageCollected<Mojo>, public ScriptWrappable { 16 class Mojo final : public GarbageCollected<Mojo>, public ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
17 18
18 public: 19 public:
19 // MojoResult 20 // MojoResult
20 static const MojoResult kResultOk = MOJO_RESULT_OK; 21 static const MojoResult kResultOk = MOJO_RESULT_OK;
21 static const MojoResult kResultCancelled = MOJO_RESULT_CANCELLED; 22 static const MojoResult kResultCancelled = MOJO_RESULT_CANCELLED;
22 static const MojoResult kResultUnknown = MOJO_RESULT_UNKNOWN; 23 static const MojoResult kResultUnknown = MOJO_RESULT_UNKNOWN;
23 static const MojoResult kResultInvalidArgument = MOJO_RESULT_INVALID_ARGUMENT; 24 static const MojoResult kResultInvalidArgument = MOJO_RESULT_INVALID_ARGUMENT;
(...skipping 10 matching lines...) Expand all
34 static const MojoResult kResultAborted = MOJO_RESULT_ABORTED; 35 static const MojoResult kResultAborted = MOJO_RESULT_ABORTED;
35 static const MojoResult kResultOutOfRange = MOJO_RESULT_OUT_OF_RANGE; 36 static const MojoResult kResultOutOfRange = MOJO_RESULT_OUT_OF_RANGE;
36 static const MojoResult kResultUnimplemented = MOJO_RESULT_UNIMPLEMENTED; 37 static const MojoResult kResultUnimplemented = MOJO_RESULT_UNIMPLEMENTED;
37 static const MojoResult kResultInternal = MOJO_RESULT_INTERNAL; 38 static const MojoResult kResultInternal = MOJO_RESULT_INTERNAL;
38 static const MojoResult kResultUnavailable = MOJO_RESULT_UNAVAILABLE; 39 static const MojoResult kResultUnavailable = MOJO_RESULT_UNAVAILABLE;
39 static const MojoResult kResultDataLoss = MOJO_RESULT_DATA_LOSS; 40 static const MojoResult kResultDataLoss = MOJO_RESULT_DATA_LOSS;
40 static const MojoResult kResultBusy = MOJO_RESULT_BUSY; 41 static const MojoResult kResultBusy = MOJO_RESULT_BUSY;
41 static const MojoResult kResultShouldWait = MOJO_RESULT_SHOULD_WAIT; 42 static const MojoResult kResultShouldWait = MOJO_RESULT_SHOULD_WAIT;
42 43
43 static void createMessagePipe(MojoCreateMessagePipeResult&); 44 static void createMessagePipe(MojoCreateMessagePipeResult&);
45 static void createSharedBuffer(unsigned numBytes,
46 MojoCreateSharedBufferResult&);
44 47
45 DEFINE_INLINE_TRACE() {} 48 DEFINE_INLINE_TRACE() {}
46 }; 49 };
47 50
48 } // namespace blink 51 } // namespace blink
49 52
50 #endif // Mojo_h 53 #endif // Mojo_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | third_party/WebKit/Source/core/mojo/Mojo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698