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

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

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 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
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/proxy/ppb_message_loop_proxy.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <utility> 7 #include <utility>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 PP_URLComponents_Dev* components) { 539 PP_URLComponents_Dev* components) {
540 ReceiveSerializedVarReturnValue result; 540 ReceiveSerializedVarReturnValue result;
541 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetPluginReferrerURL( 541 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetPluginReferrerURL(
542 API_ID_PPB_INSTANCE, instance, &result)); 542 API_ID_PPB_INSTANCE, instance, &result));
543 return PPB_URLUtil_Shared::ConvertComponentsAndReturnURL( 543 return PPB_URLUtil_Shared::ConvertComponentsAndReturnURL(
544 result.Return(dispatcher()), 544 result.Return(dispatcher()),
545 components); 545 components);
546 } 546 }
547 547
548 void PPB_Instance_Proxy::PromiseResolved(PP_Instance instance, 548 void PPB_Instance_Proxy::PromiseResolved(PP_Instance instance,
549 uint32 promise_id) { 549 uint32_t promise_id) {
550 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PromiseResolved( 550 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PromiseResolved(
551 API_ID_PPB_INSTANCE, instance, promise_id)); 551 API_ID_PPB_INSTANCE, instance, promise_id));
552 } 552 }
553 553
554 void PPB_Instance_Proxy::PromiseResolvedWithSession(PP_Instance instance, 554 void PPB_Instance_Proxy::PromiseResolvedWithSession(PP_Instance instance,
555 uint32 promise_id, 555 uint32_t promise_id,
556 PP_Var session_id_var) { 556 PP_Var session_id_var) {
557 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PromiseResolvedWithSession( 557 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PromiseResolvedWithSession(
558 API_ID_PPB_INSTANCE, instance, promise_id, 558 API_ID_PPB_INSTANCE, instance, promise_id,
559 SerializedVarSendInput(dispatcher(), session_id_var))); 559 SerializedVarSendInput(dispatcher(), session_id_var)));
560 } 560 }
561 561
562 void PPB_Instance_Proxy::PromiseRejected(PP_Instance instance, 562 void PPB_Instance_Proxy::PromiseRejected(PP_Instance instance,
563 uint32 promise_id, 563 uint32_t promise_id,
564 PP_CdmExceptionCode exception_code, 564 PP_CdmExceptionCode exception_code,
565 uint32 system_code, 565 uint32_t system_code,
566 PP_Var error_description_var) { 566 PP_Var error_description_var) {
567 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PromiseRejected( 567 dispatcher()->Send(new PpapiHostMsg_PPBInstance_PromiseRejected(
568 API_ID_PPB_INSTANCE, 568 API_ID_PPB_INSTANCE,
569 instance, 569 instance,
570 promise_id, 570 promise_id,
571 exception_code, 571 exception_code,
572 system_code, 572 system_code,
573 SerializedVarSendInput(dispatcher(), error_description_var))); 573 SerializedVarSendInput(dispatcher(), error_description_var)));
574 } 574 }
575 575
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 void PPB_Instance_Proxy::SessionClosed(PP_Instance instance, 627 void PPB_Instance_Proxy::SessionClosed(PP_Instance instance,
628 PP_Var session_id_var) { 628 PP_Var session_id_var) {
629 dispatcher()->Send(new PpapiHostMsg_PPBInstance_SessionClosed( 629 dispatcher()->Send(new PpapiHostMsg_PPBInstance_SessionClosed(
630 API_ID_PPB_INSTANCE, instance, 630 API_ID_PPB_INSTANCE, instance,
631 SerializedVarSendInput(dispatcher(), session_id_var))); 631 SerializedVarSendInput(dispatcher(), session_id_var)));
632 } 632 }
633 633
634 void PPB_Instance_Proxy::LegacySessionError(PP_Instance instance, 634 void PPB_Instance_Proxy::LegacySessionError(PP_Instance instance,
635 PP_Var session_id_var, 635 PP_Var session_id_var,
636 PP_CdmExceptionCode exception_code, 636 PP_CdmExceptionCode exception_code,
637 uint32 system_code, 637 uint32_t system_code,
638 PP_Var error_description_var) { 638 PP_Var error_description_var) {
639 dispatcher()->Send(new PpapiHostMsg_PPBInstance_LegacySessionError( 639 dispatcher()->Send(new PpapiHostMsg_PPBInstance_LegacySessionError(
640 API_ID_PPB_INSTANCE, instance, 640 API_ID_PPB_INSTANCE, instance,
641 SerializedVarSendInput(dispatcher(), session_id_var), exception_code, 641 SerializedVarSendInput(dispatcher(), session_id_var), exception_code,
642 system_code, 642 system_code,
643 SerializedVarSendInput(dispatcher(), error_description_var))); 643 SerializedVarSendInput(dispatcher(), error_description_var)));
644 } 644 }
645 645
646 void PPB_Instance_Proxy::DeliverBlock(PP_Instance instance, 646 void PPB_Instance_Proxy::DeliverBlock(PP_Instance instance,
647 PP_Resource decrypted_block, 647 PP_Resource decrypted_block,
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 PP_Instance instance) { 1465 PP_Instance instance) {
1466 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> 1466 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())->
1467 GetInstanceData(instance); 1467 GetInstanceData(instance);
1468 if (!data) 1468 if (!data)
1469 return; // Instance was probably deleted. 1469 return; // Instance was probably deleted.
1470 data->should_do_request_surrounding_text = false; 1470 data->should_do_request_surrounding_text = false;
1471 } 1471 }
1472 1472
1473 } // namespace proxy 1473 } // namespace proxy
1474 } // namespace ppapi 1474 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/proxy/ppb_message_loop_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698