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

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

Issue 1621503003: Remove 'WebPlugin::CheckIfRunInsecureContent'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « content/plugin/webplugin_proxy.h ('k') | content/renderer/npapi/webplugin_delegate_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 "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
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
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/npapi/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698