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

Unified Diff: chrome/renderer/render_view.cc

Issue 6312004: Make BlockedPlugin implement RenderViewObserver so that RenderView doesn't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 71581)
+++ chrome/renderer/render_view.cc (working copy)
@@ -565,8 +565,7 @@
device_orientation_dispatcher_(NULL),
accessibility_ack_pending_(false),
pending_app_icon_requests_(0),
- session_storage_namespace_id_(session_storage_namespace_id),
- custom_menu_listener_(NULL) {
+ session_storage_namespace_id_(session_storage_namespace_id) {
#if defined(OS_MACOSX)
// On Mac, the select popups are rendered by the browser.
// Note that we don't do this in RenderMain otherwise this would not be called
@@ -931,15 +930,6 @@
return CreateNPAPIPlugin(frame, params, info.path, mime_type);
}
-void RenderView::CustomMenuListenerInstall(CustomMenuListener* listening) {
- custom_menu_listener_ = listening;
-}
-
-void RenderView::CustomMenuListenerDestroyed(CustomMenuListener* dead) {
- if (custom_menu_listener_ == dead)
- custom_menu_listener_ = NULL;
-}
-
void RenderView::RegisterPluginDelegate(WebPluginDelegateProxy* delegate) {
plugin_delegates_.insert(delegate);
// If the renderer is visible, set initial visibility and focus state.
@@ -960,14 +950,6 @@
plugin_delegates_.erase(delegate);
}
-void RenderView::RegisterBlockedPlugin(BlockedPlugin* blocked_plugin) {
- blocked_plugins_.insert(blocked_plugin);
-}
-
-void RenderView::UnregisterBlockedPlugin(BlockedPlugin* blocked_plugin) {
- blocked_plugins_.erase(blocked_plugin);
-}
-
bool RenderView::OnMessageReceived(const IPC::Message& message) {
WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL;
if (main_frame)
@@ -1043,7 +1025,6 @@
IPC_MESSAGE_HANDLER(ViewMsg_UpdateWebPreferences, OnUpdateWebPreferences)
IPC_MESSAGE_HANDLER(ViewMsg_SetAltErrorPageURL, OnSetAltErrorPageURL)
IPC_MESSAGE_HANDLER(ViewMsg_InstallMissingPlugin, OnInstallMissingPlugin)
- IPC_MESSAGE_HANDLER(ViewMsg_LoadBlockedPlugins, OnLoadBlockedPlugins)
IPC_MESSAGE_HANDLER(ViewMsg_RunFileChooserResponse, OnFileChooserResponse)
IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode)
IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
@@ -2448,7 +2429,6 @@
void RenderView::showContextMenu(
WebFrame* frame, const WebContextMenuData& data) {
- custom_menu_listener_ = NULL;
ContextMenuParams params = ContextMenuParams(data);
if (!params.misspelled_word.empty() && RenderThread::current()) {
int misspelled_offset, misspelled_length;
@@ -4678,10 +4658,7 @@
}
void RenderView::OnCustomContextMenuAction(unsigned action) {
- if (custom_menu_listener_)
- custom_menu_listener_->MenuItemSelected(action);
- else
- webview()->performCustomContextMenuAction(action);
+ webview()->performCustomContextMenuAction(action);
}
void RenderView::OnTranslatePage(int page_id,
@@ -4702,11 +4679,6 @@
first_default_plugin_->InstallMissingPlugin();
}
-void RenderView::OnLoadBlockedPlugins() {
- while (!blocked_plugins_.empty())
- (*blocked_plugins_.begin())->LoadPlugin();
-}
-
void RenderView::OnFileChooserResponse(const std::vector<FilePath>& paths) {
// This could happen if we navigated to a different page before the user
// closed the chooser.
« no previous file with comments | « chrome/renderer/render_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698