OLD | NEW |
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 Loading... |
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 |
OLD | NEW |