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

Side by Side Diff: ppapi/proxy/ppb_char_set_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_char_set_proxy.h" 5 #include "ppapi/proxy/ppb_char_set_proxy.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "ppapi/c/dev/ppb_char_set_dev.h" 8 #include "ppapi/c/dev/ppb_char_set_dev.h"
9 #include "ppapi/c/dev/ppb_memory_dev.h" 9 #include "ppapi/c/dev/ppb_memory_dev.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
11 #include "ppapi/proxy/ppapi_messages.h" 11 #include "ppapi/proxy/ppapi_messages.h"
12 #include "ppapi/proxy/serialized_var.h" 12 #include "ppapi/proxy/serialized_var.h"
13 #include "ppapi/shared_impl/char_set_impl.h" 13 #include "ppapi/shared_impl/char_set_impl.h"
14 #include "ppapi/thunk/enter.h" 14 #include "ppapi/thunk/enter.h"
15 #include "ppapi/thunk/thunk.h" 15 #include "ppapi/thunk/thunk.h"
16 16
17 namespace pp { 17 namespace ppapi {
18 namespace proxy { 18 namespace proxy {
19 19
20 namespace { 20 namespace {
21 21
22 const PPB_Memory_Dev* GetMemoryDevInterface() { 22 const PPB_Memory_Dev* GetMemoryDevInterface() {
23 return static_cast<const PPB_Memory_Dev*>( 23 return static_cast<const PPB_Memory_Dev*>(
24 PluginDispatcher::GetInterfaceFromDispatcher(PPB_MEMORY_DEV_INTERFACE)); 24 PluginDispatcher::GetInterfaceFromDispatcher(PPB_MEMORY_DEV_INTERFACE));
25 } 25 }
26 26
27 InterfaceProxy* CreateCharSetProxy(Dispatcher* dispatcher, 27 InterfaceProxy* CreateCharSetProxy(Dispatcher* dispatcher,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void PPB_CharSet_Proxy::OnMsgGetDefaultCharSet( 102 void PPB_CharSet_Proxy::OnMsgGetDefaultCharSet(
103 PP_Instance instance, 103 PP_Instance instance,
104 SerializedVarReturnValue result) { 104 SerializedVarReturnValue result) {
105 ppapi::thunk::EnterFunctionNoLock<ppapi::thunk::PPB_CharSet_FunctionAPI> 105 ppapi::thunk::EnterFunctionNoLock<ppapi::thunk::PPB_CharSet_FunctionAPI>
106 enter(instance, true); 106 enter(instance, true);
107 if (enter.succeeded()) 107 if (enter.succeeded())
108 result.Return(dispatcher(), enter.functions()->GetDefaultCharSet(instance)); 108 result.Return(dispatcher(), enter.functions()->GetDefaultCharSet(instance));
109 } 109 }
110 110
111 } // namespace proxy 111 } // namespace proxy
112 } // namespace pp 112 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698