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

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

Issue 2720873002: Implements JS bindings for mojo shared buffer. (Closed)
Patch Set: unmap upon destruction 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MojoSharedBufferMapping_h
6 #define MojoSharedBufferMapping_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9
10 namespace blink {
11
12 class DOMArrayBuffer;
13
14 class MojoSharedBufferMapping final
15 : public GarbageCollectedFinalized<MojoSharedBufferMapping>,
16 public ScriptWrappable {
17 DEFINE_WRAPPERTYPEINFO();
18
19 public:
20 MojoSharedBufferMapping(void* data, unsigned numBytes);
21 ~MojoSharedBufferMapping();
22
23 DOMArrayBuffer* buffer() { return m_buffer.get(); }
24 void unmap();
25
26 DECLARE_TRACE();
27
28 private:
29 Member<DOMArrayBuffer> m_buffer;
30 };
31
32 } // namespace blink
33
34 #endif // MojoSharedBufferMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698