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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_buffer.cc

Issue 9253011: Pepper SRPC proxy style and type nits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad license to pass presubmit check Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can 2 // Use of this source code is governed by a BSD-style license that can be
3 // be found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_buffer.h" 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_buffer.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 #include "srpcgen/ppb_rpc.h" 9 #include "srpcgen/ppb_rpc.h"
10 #include "native_client/src/include/portability.h" 10 #include "native_client/src/include/portability.h"
11 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 11 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
12 #include "native_client/src/shared/ppapi_proxy/utility.h" 12 #include "native_client/src/shared/ppapi_proxy/utility.h"
13 #include "native_client/src/shared/srpc/nacl_srpc.h" 13 #include "native_client/src/shared/srpc/nacl_srpc.h"
14 #include "ppapi/c/dev/ppb_buffer_dev.h" 14 #include "ppapi/c/dev/ppb_buffer_dev.h"
15 15
16 namespace ppapi_proxy { 16 namespace ppapi_proxy {
17 17
18 namespace { 18 namespace {
19 PP_Resource Create(PP_Module module, uint32_t size_in_bytes) { 19 PP_Resource Create(PP_Module module, uint32_t size_in_bytes) {
20 UNREFERENCED_PARAMETER(module); 20 UNREFERENCED_PARAMETER(module);
21 UNREFERENCED_PARAMETER(size_in_bytes); 21 UNREFERENCED_PARAMETER(size_in_bytes);
22 return kInvalidResourceId; 22 return kInvalidResourceId;
23 } 23 }
24 24
25 PP_Bool IsBuffer(PP_Resource resource) { 25 PP_Bool IsBuffer(PP_Resource resource) {
26 return PluginResource::GetAs<PluginBuffer>(resource).get() 26 return PP_FromBool(PluginResource::GetAs<PluginBuffer>(resource).get());
27 ? PP_TRUE : PP_FALSE;
28 } 27 }
29 28
30 PP_Bool Describe(PP_Resource resource, uint32_t* size_in_bytes) { 29 PP_Bool Describe(PP_Resource resource, uint32_t* size_in_bytes) {
31 UNREFERENCED_PARAMETER(resource); 30 UNREFERENCED_PARAMETER(resource);
32 UNREFERENCED_PARAMETER(size_in_bytes); 31 UNREFERENCED_PARAMETER(size_in_bytes);
33 return PP_FALSE; 32 return PP_FALSE;
34 } 33 }
35 34
36 void* Map(PP_Resource resource) { 35 void* Map(PP_Resource resource) {
37 UNREFERENCED_PARAMETER(resource); 36 UNREFERENCED_PARAMETER(resource);
(...skipping 10 matching lines...) Expand all
48 Create, 47 Create,
49 IsBuffer, 48 IsBuffer,
50 Describe, 49 Describe,
51 Map, 50 Map,
52 Unmap, 51 Unmap,
53 }; 52 };
54 return &buffer_interface; 53 return &buffer_interface;
55 } 54 }
56 55
57 } // namespace ppapi_proxy 56 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698