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

Side by Side Diff: content/plugin/webplugin_proxy.cc

Issue 246253006: Fixed routing id in WebPluginProxy::CheckIfRunInsecureContent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | no next file » | 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 "content/plugin/webplugin_proxy.h" 5 #include "content/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 } 593 }
594 } 594 }
595 595
596 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { 596 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) {
597 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); 597 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id));
598 } 598 }
599 599
600 bool WebPluginProxy::CheckIfRunInsecureContent(const GURL& url) { 600 bool WebPluginProxy::CheckIfRunInsecureContent(const GURL& url) {
601 bool result = true; 601 bool result = true;
602 Send(new PluginHostMsg_CheckIfRunInsecureContent( 602 Send(new PluginHostMsg_CheckIfRunInsecureContent(
603 host_render_view_routing_id_, url, &result)); 603 route_id_, url, &result));
604 return result; 604 return result;
605 } 605 }
606 606
607 #if defined(OS_WIN) && !defined(USE_AURA) 607 #if defined(OS_WIN) && !defined(USE_AURA)
608 void WebPluginProxy::UpdateIMEStatus() { 608 void WebPluginProxy::UpdateIMEStatus() {
609 // Retrieve the IME status from a plug-in and send it to a renderer process 609 // Retrieve the IME status from a plug-in and send it to a renderer process
610 // when the plug-in has updated it. 610 // when the plug-in has updated it.
611 int input_type; 611 int input_type;
612 gfx::Rect caret_rect; 612 gfx::Rect caret_rect;
613 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) 613 if (!delegate_->GetIMEStatus(&input_type, &caret_rect))
614 return; 614 return;
615 615
616 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); 616 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect));
617 } 617 }
618 #endif 618 #endif
619 619
620 } // namespace content 620 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698