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

Side by Side Diff: webkit/plugins/ppapi/host_array_buffer_var.h

Issue 8930010: Implement in-process PPB_VarArrayBuffer_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/host_array_buffer_var.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 PPAPI_WEBKIT_PLUGINS_PPAPI_HOST_ARRAY_BUFFER_VAR_H_
6 #define PPAPI_WEBKIT_PLUGINS_PPAPI_HOST_ARRAY_BUFFER_VAR_H_
7
8 #include "ppapi/shared_impl/var.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebArrayBuffer.h"
10
11 namespace webkit {
12 namespace ppapi {
13
14 // Represents a host-side ArrayBufferVar.
15 class HostArrayBufferVar : public ::ppapi::ArrayBufferVar {
16 public:
17 explicit HostArrayBufferVar(uint32 size_in_bytes);
18 explicit HostArrayBufferVar(const WebKit::WebArrayBuffer& buffer);
19 virtual ~HostArrayBufferVar();
20
21 // ArrayBufferVar implementation.
22 virtual void* Map() OVERRIDE;
23 virtual uint32 ByteLength() OVERRIDE;
24
25 WebKit::WebArrayBuffer& webkit_buffer() { return buffer_; }
26
27 private:
28 WebKit::WebArrayBuffer buffer_;
29
30 DISALLOW_COPY_AND_ASSIGN(HostArrayBufferVar);
31 };
32
33 } // namespace ppapi
34 } // namespace webkit
35
36 #endif // PPAPI_WEBKIT_PLUGINS_PPAPI_HOST_ARRAY_BUFFER_VAR_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/host_array_buffer_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698