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

Side by Side Diff: ppapi/proxy/ppp_instance_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: Comments addressed 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
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.h ('k') | ppapi/proxy/ppp_video_decoder_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ppp_instance_proxy.h" 5 #include "ppapi/proxy/ppp_instance_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 9 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 #include "ppapi/c/ppb_core.h" 11 #include "ppapi/c/ppb_core.h"
12 #include "ppapi/c/ppp_instance.h" 12 #include "ppapi/c/ppp_instance.h"
13 #include "ppapi/proxy/host_dispatcher.h" 13 #include "ppapi/proxy/host_dispatcher.h"
14 #include "ppapi/proxy/plugin_dispatcher.h" 14 #include "ppapi/proxy/plugin_dispatcher.h"
15 #include "ppapi/proxy/plugin_resource_tracker.h" 15 #include "ppapi/proxy/plugin_resource_tracker.h"
16 #include "ppapi/proxy/ppapi_messages.h" 16 #include "ppapi/proxy/ppapi_messages.h"
17 #include "ppapi/proxy/ppb_url_loader_proxy.h" 17 #include "ppapi/proxy/ppb_url_loader_proxy.h"
18 18
19 using ppapi::HostResource;
20
19 namespace pp { 21 namespace pp {
20 namespace proxy { 22 namespace proxy {
21 23
22 namespace { 24 namespace {
23 25
24 PP_Bool DidCreate(PP_Instance instance, 26 PP_Bool DidCreate(PP_Instance instance,
25 uint32_t argc, 27 uint32_t argc,
26 const char* argn[], 28 const char* argn[],
27 const char* argv[]) { 29 const char* argv[]) {
28 std::vector<std::string> argn_vect; 30 std::vector<std::string> argn_vect;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // with. The plugin will normally take an additional reference which will keep 219 // with. The plugin will normally take an additional reference which will keep
218 // the resource alive in the plugin (and the one reference in the renderer 220 // the resource alive in the plugin (and the one reference in the renderer
219 // representing all plugin references). 221 // representing all plugin references).
220 // Once all references at the plugin side are released, the renderer side will 222 // Once all references at the plugin side are released, the renderer side will
221 // be notified and release the reference added in HandleDocumentLoad() above. 223 // be notified and release the reference added in HandleDocumentLoad() above.
222 PluginResourceTracker::GetInstance()->ReleaseResource(plugin_loader); 224 PluginResourceTracker::GetInstance()->ReleaseResource(plugin_loader);
223 } 225 }
224 226
225 } // namespace proxy 227 } // namespace proxy
226 } // namespace pp 228 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.h ('k') | ppapi/proxy/ppp_video_decoder_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698