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

Side by Side Diff: ppapi/proxy/ppb_buffer_proxy.cc

Issue 7623018: Move host resource from the proxy to the shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "ppapi/proxy/ppb_buffer_proxy.h" 5 #include "ppapi/proxy/ppb_buffer_proxy.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "ppapi/c/pp_completion_callback.h" 11 #include "ppapi/c/pp_completion_callback.h"
12 #include "ppapi/c/pp_errors.h" 12 #include "ppapi/c/pp_errors.h"
13 #include "ppapi/c/pp_resource.h" 13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/c/dev/ppb_buffer_dev.h" 14 #include "ppapi/c/dev/ppb_buffer_dev.h"
15 #include "ppapi/proxy/host_dispatcher.h" 15 #include "ppapi/proxy/host_dispatcher.h"
16 #include "ppapi/proxy/plugin_dispatcher.h" 16 #include "ppapi/proxy/plugin_dispatcher.h"
17 #include "ppapi/proxy/ppapi_messages.h" 17 #include "ppapi/proxy/ppapi_messages.h"
18 #include "ppapi/thunk/enter.h" 18 #include "ppapi/thunk/enter.h"
19 #include "ppapi/thunk/ppb_buffer_trusted_api.h" 19 #include "ppapi/thunk/ppb_buffer_trusted_api.h"
20 #include "ppapi/thunk/thunk.h" 20 #include "ppapi/thunk/thunk.h"
21 21
22 using ppapi::HostResource;
23
22 namespace pp { 24 namespace pp {
23 namespace proxy { 25 namespace proxy {
24 26
25 namespace { 27 namespace {
26 28
27 InterfaceProxy* CreateBufferProxy(Dispatcher* dispatcher, 29 InterfaceProxy* CreateBufferProxy(Dispatcher* dispatcher,
28 const void* target_interface) { 30 const void* target_interface) {
29 return new PPB_Buffer_Proxy(dispatcher, target_interface); 31 return new PPB_Buffer_Proxy(dispatcher, target_interface);
30 } 32 }
31 33
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 #elif defined(OS_POSIX) 160 #elif defined(OS_POSIX)
159 local_fd; 161 local_fd;
160 #else 162 #else
161 #error Not implemented. 163 #error Not implemented.
162 #endif 164 #endif
163 *result_shm_handle = dispatcher->ShareHandleWithRemote(platform_file, false); 165 *result_shm_handle = dispatcher->ShareHandleWithRemote(platform_file, false);
164 } 166 }
165 167
166 } // namespace proxy 168 } // namespace proxy
167 } // namespace pp 169 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698