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

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

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (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/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; 19 namespace ppapi {
20
21 namespace pp {
22 namespace proxy { 20 namespace proxy {
23 21
24 namespace { 22 namespace {
25 23
26 PP_Bool DidCreate(PP_Instance instance, 24 PP_Bool DidCreate(PP_Instance instance,
27 uint32_t argc, 25 uint32_t argc,
28 const char* argn[], 26 const char* argn[],
29 const char* argv[]) { 27 const char* argv[]) {
30 std::vector<std::string> argn_vect; 28 std::vector<std::string> argn_vect;
31 std::vector<std::string> argv_vect; 29 std::vector<std::string> argv_vect;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // This balances the one reference that TrackPluginResource() initialized it 218 // This balances the one reference that TrackPluginResource() initialized it
221 // 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
222 // 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
223 // representing all plugin references). 221 // representing all plugin references).
224 // 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
225 // be notified and release the reference added in HandleDocumentLoad() above. 223 // be notified and release the reference added in HandleDocumentLoad() above.
226 PluginResourceTracker::GetInstance()->ReleaseResource(plugin_loader); 224 PluginResourceTracker::GetInstance()->ReleaseResource(plugin_loader);
227 } 225 }
228 226
229 } // namespace proxy 227 } // namespace proxy
230 } // namespace pp 228 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698