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

Side by Side Diff: ppapi/proxy/ppb_core_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/ppb_core_proxy.h" 5 #include "ppapi/proxy/ppb_core_proxy.h"
6 6
7 #include <stdlib.h> // For malloc 7 #include <stdlib.h> // For malloc
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "ppapi/c/pp_completion_callback.h" 14 #include "ppapi/c/pp_completion_callback.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/ppb_core.h" 16 #include "ppapi/c/ppb_core.h"
17 #include "ppapi/proxy/plugin_dispatcher.h" 17 #include "ppapi/proxy/plugin_dispatcher.h"
18 #include "ppapi/proxy/plugin_resource_tracker.h" 18 #include "ppapi/proxy/plugin_resource_tracker.h"
19 #include "ppapi/proxy/ppapi_messages.h" 19 #include "ppapi/proxy/ppapi_messages.h"
20 #include "ppapi/shared_impl/time_conversion.h" 20 #include "ppapi/shared_impl/time_conversion.h"
21 21
22 using ppapi::HostResource; 22 namespace ppapi {
23 using ppapi::TimeToPPTime;
24 using ppapi::TimeTicksToPPTimeTicks;
25
26 namespace pp {
27 namespace proxy { 23 namespace proxy {
28 24
29 namespace { 25 namespace {
30 26
31 base::MessageLoopProxy* GetMainThreadMessageLoop() { 27 base::MessageLoopProxy* GetMainThreadMessageLoop() {
32 static scoped_refptr<base::MessageLoopProxy> proxy( 28 static scoped_refptr<base::MessageLoopProxy> proxy(
33 base::MessageLoopProxy::CreateForCurrentThread()); 29 base::MessageLoopProxy::CreateForCurrentThread());
34 return proxy.get(); 30 return proxy.get();
35 } 31 }
36 32
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 117
122 void PPB_Core_Proxy::OnMsgAddRefResource(const HostResource& resource) { 118 void PPB_Core_Proxy::OnMsgAddRefResource(const HostResource& resource) {
123 ppb_core_target()->AddRefResource(resource.host_resource()); 119 ppb_core_target()->AddRefResource(resource.host_resource());
124 } 120 }
125 121
126 void PPB_Core_Proxy::OnMsgReleaseResource(const HostResource& resource) { 122 void PPB_Core_Proxy::OnMsgReleaseResource(const HostResource& resource) {
127 ppb_core_target()->ReleaseResource(resource.host_resource()); 123 ppb_core_target()->ReleaseResource(resource.host_resource());
128 } 124 }
129 125
130 } // namespace proxy 126 } // namespace proxy
131 } // namespace pp 127 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698