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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 } else { | 536 } else { |
537 index++; | 537 index++; |
538 } | 538 } |
539 } | 539 } |
540 } | 540 } |
541 | 541 |
542 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 542 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
543 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 543 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
544 } | 544 } |
545 | 545 |
546 bool WebPluginProxy::CheckIfRunInsecureContent(const GURL& url) { | |
547 bool result = true; | |
548 Send(new PluginHostMsg_CheckIfRunInsecureContent( | |
549 route_id_, url, &result)); | |
550 return result; | |
551 } | |
552 | |
553 #if defined(OS_WIN) && !defined(USE_AURA) | 546 #if defined(OS_WIN) && !defined(USE_AURA) |
554 void WebPluginProxy::UpdateIMEStatus() { | 547 void WebPluginProxy::UpdateIMEStatus() { |
555 // Retrieve the IME status from a plugin and send it to a renderer process | 548 // Retrieve the IME status from a plugin and send it to a renderer process |
556 // when the plugin has updated it. | 549 // when the plugin has updated it. |
557 int input_type; | 550 int input_type; |
558 gfx::Rect caret_rect; | 551 gfx::Rect caret_rect; |
559 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 552 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
560 return; | 553 return; |
561 | 554 |
562 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 555 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
563 } | 556 } |
564 #endif | 557 #endif |
565 | 558 |
566 } // namespace content | 559 } // namespace content |
OLD | NEW |