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

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

Issue 375133003: Fixes for re-enabling more MSVC level 4 warnings: ppapi/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempt build fix Created 6 years, 5 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
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.cc ('k') | ppapi/tests/test_file_mapping.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) 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 "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/pp_time.h" 10 #include "ppapi/c/pp_time.h"
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 void PPB_Instance_Proxy::ZoomLimitsChanged(PP_Instance instance, 491 void PPB_Instance_Proxy::ZoomLimitsChanged(PP_Instance instance,
492 double minimum_factor, 492 double minimum_factor,
493 double maximium_factor) { 493 double maximium_factor) {
494 // Not proxied yet. 494 // Not proxied yet.
495 NOTIMPLEMENTED(); 495 NOTIMPLEMENTED();
496 } 496 }
497 497
498 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance, 498 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance,
499 PP_URLComponents_Dev* components) { 499 PP_URLComponents_Dev* components) {
500 ReceiveSerializedVarReturnValue result; 500 ReceiveSerializedVarReturnValue result;
501 PP_URLComponents_Dev url_components; 501 PP_URLComponents_Dev url_components = {{0}};
502 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL( 502 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL(
503 API_ID_PPB_INSTANCE, instance, &url_components, &result)); 503 API_ID_PPB_INSTANCE, instance, &url_components, &result));
504 if (components) 504 if (components)
505 *components = url_components; 505 *components = url_components;
506 return result.Return(dispatcher()); 506 return result.Return(dispatcher());
507 } 507 }
508 508
509 #if !defined(OS_NACL) 509 #if !defined(OS_NACL)
510 PP_Var PPB_Instance_Proxy::ResolveRelativeToDocument( 510 PP_Var PPB_Instance_Proxy::ResolveRelativeToDocument(
511 PP_Instance instance, 511 PP_Instance instance,
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 PP_Instance instance) { 1436 PP_Instance instance) {
1437 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> 1437 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())->
1438 GetInstanceData(instance); 1438 GetInstanceData(instance);
1439 if (!data) 1439 if (!data)
1440 return; // Instance was probably deleted. 1440 return; // Instance was probably deleted.
1441 data->should_do_request_surrounding_text = false; 1441 data->should_do_request_surrounding_text = false;
1442 } 1442 }
1443 1443
1444 } // namespace proxy 1444 } // namespace proxy
1445 } // namespace ppapi 1445 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.cc ('k') | ppapi/tests/test_file_mapping.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698