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

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

Issue 8824015: Revert 113290 - Rename the shared_impl resource files to give them more regular names. (Closed) Base URL: svn://svn.chromium.org/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/ppb_url_util_shared.h" 18 #include "ppapi/shared_impl/url_util_impl.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 PPB_URLUtil_Shared::ConvertComponentsAndReturnURL( 320 return URLUtilImpl::ConvertComponentsAndReturnURL(result.Return(dispatcher()),
321 result.Return(dispatcher()), 321 components);
322 components);
323 } 322 }
324 323
325 PP_Bool PPB_Instance_Proxy::DocumentCanRequest(PP_Instance instance, 324 PP_Bool PPB_Instance_Proxy::DocumentCanRequest(PP_Instance instance,
326 PP_Var url) { 325 PP_Var url) {
327 PP_Bool result = PP_FALSE; 326 PP_Bool result = PP_FALSE;
328 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanRequest( 327 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanRequest(
329 API_ID_PPB_INSTANCE, instance, 328 API_ID_PPB_INSTANCE, instance,
330 SerializedVarSendInput(dispatcher(), url), 329 SerializedVarSendInput(dispatcher(), url),
331 &result)); 330 &result));
332 return result; 331 return result;
333 } 332 }
334 333
335 PP_Bool PPB_Instance_Proxy::DocumentCanAccessDocument(PP_Instance instance, 334 PP_Bool PPB_Instance_Proxy::DocumentCanAccessDocument(PP_Instance instance,
336 PP_Instance target) { 335 PP_Instance target) {
337 PP_Bool result = PP_FALSE; 336 PP_Bool result = PP_FALSE;
338 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanAccessDocument( 337 dispatcher()->Send(new PpapiHostMsg_PPBInstance_DocumentCanAccessDocument(
339 API_ID_PPB_INSTANCE, instance, target, &result)); 338 API_ID_PPB_INSTANCE, instance, target, &result));
340 return result; 339 return result;
341 } 340 }
342 341
343 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance, 342 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance,
344 PP_URLComponents_Dev* components) { 343 PP_URLComponents_Dev* components) {
345 ReceiveSerializedVarReturnValue result; 344 ReceiveSerializedVarReturnValue result;
346 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL( 345 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL(
347 API_ID_PPB_INSTANCE, instance, &result)); 346 API_ID_PPB_INSTANCE, instance, &result));
348 return PPB_URLUtil_Shared::ConvertComponentsAndReturnURL( 347 return URLUtilImpl::ConvertComponentsAndReturnURL(result.Return(dispatcher()),
349 result.Return(dispatcher()), 348 components);
350 components);
351 } 349 }
352 350
353 PP_Var PPB_Instance_Proxy::GetPluginInstanceURL( 351 PP_Var PPB_Instance_Proxy::GetPluginInstanceURL(
354 PP_Instance instance, 352 PP_Instance instance,
355 PP_URLComponents_Dev* components) { 353 PP_URLComponents_Dev* components) {
356 ReceiveSerializedVarReturnValue result; 354 ReceiveSerializedVarReturnValue result;
357 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetPluginInstanceURL( 355 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetPluginInstanceURL(
358 API_ID_PPB_INSTANCE, instance, &result)); 356 API_ID_PPB_INSTANCE, instance, &result));
359 return PPB_URLUtil_Shared::ConvertComponentsAndReturnURL( 357 return URLUtilImpl::ConvertComponentsAndReturnURL(result.Return(dispatcher()),
360 result.Return(dispatcher()), 358 components);
361 components);
362 } 359 }
363 360
364 void PPB_Instance_Proxy::PostMessage(PP_Instance instance, 361 void PPB_Instance_Proxy::PostMessage(PP_Instance instance,
365 PP_Var message) { 362 PP_Var message) {
366 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PostMessage( 363 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PostMessage(
367 API_ID_PPB_INSTANCE, 364 API_ID_PPB_INSTANCE,
368 instance, SerializedVarSendInput(dispatcher(), message))); 365 instance, SerializedVarSendInput(dispatcher(), message)));
369 } 366 }
370 367
371 int32_t PPB_Instance_Proxy::LockMouse(PP_Instance instance, 368 int32_t PPB_Instance_Proxy::LockMouse(PP_Instance instance,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 } 609 }
613 610
614 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, 611 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result,
615 PP_Instance instance) { 612 PP_Instance instance) {
616 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( 613 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete(
617 API_ID_PPB_INSTANCE, instance, result)); 614 API_ID_PPB_INSTANCE, instance, result));
618 } 615 }
619 616
620 } // namespace proxy 617 } // namespace proxy
621 } // namespace ppapi 618 } // 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