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

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

Issue 8849003: Rename the shared_impl resource files to give them more regular names. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/ppb_instance_proxy.h ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('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/ppb_instance_proxy.h" 5 #include "ppapi/proxy/ppb_instance_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_var.h" 8 #include "ppapi/c/pp_var.h"
9 #include "ppapi/c/ppb_instance.h" 9 #include "ppapi/c/ppb_instance.h"
10 #include "ppapi/c/ppb_messaging.h" 10 #include "ppapi/c/ppb_messaging.h"
11 #include "ppapi/c/ppb_mouse_lock.h" 11 #include "ppapi/c/ppb_mouse_lock.h"
12 #include "ppapi/proxy/enter_proxy.h" 12 #include "ppapi/proxy/enter_proxy.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/ppapi_messages.h" 15 #include "ppapi/proxy/ppapi_messages.h"
16 #include "ppapi/proxy/serialized_var.h" 16 #include "ppapi/proxy/serialized_var.h"
17 #include "ppapi/shared_impl/ppapi_globals.h" 17 #include "ppapi/shared_impl/ppapi_globals.h"
18 #include "ppapi/shared_impl/url_util_impl.h" 18 #include "ppapi/shared_impl/ppb_url_util_shared.h"
19 #include "ppapi/thunk/enter.h" 19 #include "ppapi/thunk/enter.h"
20 #include "ppapi/thunk/thunk.h" 20 #include "ppapi/thunk/thunk.h"
21 21
22 // Windows headers interfere with this file. 22 // Windows headers interfere with this file.
23 #ifdef PostMessage 23 #ifdef PostMessage
24 #undef PostMessage 24 #undef PostMessage
25 #endif 25 #endif
26 26
27 using ppapi::thunk::EnterFunctionNoLock; 27 using ppapi::thunk::EnterFunctionNoLock;
28 using ppapi::thunk::EnterResourceNoLock; 28 using ppapi::thunk::EnterResourceNoLock;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 PP_Var PPB_Instance_Proxy::ResolveRelativeToDocument( 311 PP_Var PPB_Instance_Proxy::ResolveRelativeToDocument(
312 PP_Instance instance, 312 PP_Instance instance,
313 PP_Var relative, 313 PP_Var relative,
314 PP_URLComponents_Dev* components) { 314 PP_URLComponents_Dev* components) {
315 ReceiveSerializedVarReturnValue result; 315 ReceiveSerializedVarReturnValue result;
316 dispatcher()->Send(new PpapiHostMsg_PPBInstance_ResolveRelativeToDocument( 316 dispatcher()->Send(new PpapiHostMsg_PPBInstance_ResolveRelativeToDocument(
317 API_ID_PPB_INSTANCE, instance, 317 API_ID_PPB_INSTANCE, instance,
318 SerializedVarSendInput(dispatcher(), relative), 318 SerializedVarSendInput(dispatcher(), relative),
319 &result)); 319 &result));
320 return URLUtilImpl::ConvertComponentsAndReturnURL(result.Return(dispatcher()), 320 return PPB_URLUtil_Shared::ConvertComponentsAndReturnURL(
321 components); 321 result.Return(dispatcher()),
322 components);
322 } 323 }
323 324
324 PP_Bool PPB_Instance_Proxy::DocumentCanRequest(PP_Instance instance, 325 PP_Bool PPB_Instance_Proxy::DocumentCanRequest(PP_Instance instance,
325 PP_Var url) { 326 PP_Var url) {
326 PP_Bool result = PP_FALSE; 327 PP_Bool result = PP_FALSE;
327 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanRequest( 328 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanRequest(
328 API_ID_PPB_INSTANCE, instance, 329 API_ID_PPB_INSTANCE, instance,
329 SerializedVarSendInput(dispatcher(), url), 330 SerializedVarSendInput(dispatcher(), url),
330 &result)); 331 &result));
331 return result; 332 return result;
332 } 333 }
333 334
334 PP_Bool PPB_Instance_Proxy::DocumentCanAccessDocument(PP_Instance instance, 335 PP_Bool PPB_Instance_Proxy::DocumentCanAccessDocument(PP_Instance instance,
335 PP_Instance target) { 336 PP_Instance target) {
336 PP_Bool result = PP_FALSE; 337 PP_Bool result = PP_FALSE;
337 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanAccessDocument( 338 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanAccessDocument(
338 API_ID_PPB_INSTANCE, instance, target, &result)); 339 API_ID_PPB_INSTANCE, instance, target, &result));
339 return result; 340 return result;
340 } 341 }
341 342
342 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance, 343 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance,
343 PP_URLComponents_Dev* components) { 344 PP_URLComponents_Dev* components) {
344 ReceiveSerializedVarReturnValue result; 345 ReceiveSerializedVarReturnValue result;
345 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL( 346 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL(
346 API_ID_PPB_INSTANCE, instance, &result)); 347 API_ID_PPB_INSTANCE, instance, &result));
347 return URLUtilImpl::ConvertComponentsAndReturnURL(result.Return(dispatcher()), 348 return PPB_URLUtil_Shared::ConvertComponentsAndReturnURL(
348 components); 349 result.Return(dispatcher()),
350 components);
349 } 351 }
350 352
351 PP_Var PPB_Instance_Proxy::GetPluginInstanceURL( 353 PP_Var PPB_Instance_Proxy::GetPluginInstanceURL(
352 PP_Instance instance, 354 PP_Instance instance,
353 PP_URLComponents_Dev* components) { 355 PP_URLComponents_Dev* components) {
354 ReceiveSerializedVarReturnValue result; 356 ReceiveSerializedVarReturnValue result;
355 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetPluginInstanceURL( 357 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetPluginInstanceURL(
356 API_ID_PPB_INSTANCE, instance, &result)); 358 API_ID_PPB_INSTANCE, instance, &result));
357 return URLUtilImpl::ConvertComponentsAndReturnURL(result.Return(dispatcher()), 359 return PPB_URLUtil_Shared::ConvertComponentsAndReturnURL(
358 components); 360 result.Return(dispatcher()),
361 components);
359 } 362 }
360 363
361 void PPB_Instance_Proxy::PostMessage(PP_Instance instance, 364 void PPB_Instance_Proxy::PostMessage(PP_Instance instance,
362 PP_Var message) { 365 PP_Var message) {
363 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PostMessage( 366 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PostMessage(
364 API_ID_PPB_INSTANCE, 367 API_ID_PPB_INSTANCE,
365 instance, SerializedVarSendInput(dispatcher(), message))); 368 instance, SerializedVarSendInput(dispatcher(), message)));
366 } 369 }
367 370
368 int32_t PPB_Instance_Proxy::LockMouse(PP_Instance instance, 371 int32_t PPB_Instance_Proxy::LockMouse(PP_Instance instance,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 } 612 }
610 613
611 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, 614 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result,
612 PP_Instance instance) { 615 PP_Instance instance) {
613 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( 616 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete(
614 API_ID_PPB_INSTANCE, instance, result)); 617 API_ID_PPB_INSTANCE, instance, result));
615 } 618 }
616 619
617 } // namespace proxy 620 } // namespace proxy
618 } // namespace ppapi 621 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698