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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 9836131: Remove PPB_Flash_NetConnector and ENABLE_FLAPPER_HACKS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | ppapi/c/private/ppb_flash_net_connector.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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 #include "content/renderer/web_ui_bindings.h" 91 #include "content/renderer/web_ui_bindings.h"
92 #include "content/renderer/webplugin_delegate_proxy.h" 92 #include "content/renderer/webplugin_delegate_proxy.h"
93 #include "content/renderer/websharedworker_proxy.h" 93 #include "content/renderer/websharedworker_proxy.h"
94 #include "media/base/filter_collection.h" 94 #include "media/base/filter_collection.h"
95 #include "media/base/media_switches.h" 95 #include "media/base/media_switches.h"
96 #include "media/base/message_loop_factory.h" 96 #include "media/base/message_loop_factory.h"
97 #include "media/filters/gpu_video_decoder.h" 97 #include "media/filters/gpu_video_decoder.h"
98 #include "net/base/escape.h" 98 #include "net/base/escape.h"
99 #include "net/base/net_errors.h" 99 #include "net/base/net_errors.h"
100 #include "net/http/http_util.h" 100 #include "net/http/http_util.h"
101 #include "ppapi/c/private/ppb_flash_net_connector.h"
102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h" 101 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h"
103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" 102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams. h" 105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams. h"
107 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h" 106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h"
108 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 107 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
109 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h" 108 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h"
110 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 109 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
111 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 110 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 818 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
820 OnGetAllSavableResourceLinksForCurrentPage) 819 OnGetAllSavableResourceLinksForCurrentPage)
821 IPC_MESSAGE_HANDLER( 820 IPC_MESSAGE_HANDLER(
822 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 821 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
823 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks) 822 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks)
824 #if defined(OS_MACOSX) 823 #if defined(OS_MACOSX)
825 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) 824 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem)
826 #endif 825 #endif
827 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) 826 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed)
828 // TODO(viettrungluu): Move to a separate message filter. 827 // TODO(viettrungluu): Move to a separate message filter.
829 #if defined(ENABLE_FLAPPER_HACKS)
830 IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK)
831 #endif
832 #if defined(OS_MACOSX) 828 #if defined(OS_MACOSX)
833 IPC_MESSAGE_HANDLER(ViewMsg_SetInLiveResize, OnSetInLiveResize) 829 IPC_MESSAGE_HANDLER(ViewMsg_SetInLiveResize, OnSetInLiveResize)
834 #endif 830 #endif
835 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryLengthAndPrune, 831 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryLengthAndPrune,
836 OnSetHistoryLengthAndPrune) 832 OnSetHistoryLengthAndPrune)
837 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode) 833 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode)
838 IPC_MESSAGE_HANDLER(JavaBridgeMsg_Init, OnJavaBridgeInit) 834 IPC_MESSAGE_HANDLER(JavaBridgeMsg_Init, OnJavaBridgeInit)
839 835
840 // Have the super handle all other messages. 836 // Have the super handle all other messages.
841 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) 837 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message))
(...skipping 4318 matching lines...) Expand 10 before | Expand all | Expand 10 after
5160 // If you hit this please file a bug against jcivelli and include the page 5156 // If you hit this please file a bug against jcivelli and include the page
5161 // and steps to repro. 5157 // and steps to repro.
5162 NOTREACHED(); 5158 NOTREACHED();
5163 return; 5159 return;
5164 } 5160 }
5165 external_popup_menu_->DidSelectItem(selected_index); 5161 external_popup_menu_->DidSelectItem(selected_index);
5166 external_popup_menu_.reset(); 5162 external_popup_menu_.reset();
5167 } 5163 }
5168 #endif 5164 #endif
5169 5165
5170 #if defined(ENABLE_FLAPPER_HACKS)
5171 void RenderViewImpl::OnConnectTcpACK(
5172 int request_id,
5173 IPC::PlatformFileForTransit socket_for_transit,
5174 const PP_NetAddress_Private& local_addr,
5175 const PP_NetAddress_Private& remote_addr) {
5176 pepper_delegate_.OnConnectTcpACK(
5177 request_id,
5178 IPC::PlatformFileForTransitToPlatformFile(socket_for_transit),
5179 local_addr,
5180 remote_addr);
5181 }
5182 #endif
5183
5184 void RenderViewImpl::OnContextMenuClosed( 5166 void RenderViewImpl::OnContextMenuClosed(
5185 const content::CustomContextMenuContext& custom_context) { 5167 const content::CustomContextMenuContext& custom_context) {
5186 if (custom_context.is_pepper_menu) 5168 if (custom_context.is_pepper_menu)
5187 pepper_delegate_.OnContextMenuClosed(custom_context); 5169 pepper_delegate_.OnContextMenuClosed(custom_context);
5188 else 5170 else
5189 context_menu_node_.reset(); 5171 context_menu_node_.reset();
5190 } 5172 }
5191 5173
5192 void RenderViewImpl::OnEnableViewSourceMode() { 5174 void RenderViewImpl::OnEnableViewSourceMode() {
5193 if (!webview()) 5175 if (!webview())
5194 return; 5176 return;
5195 WebFrame* main_frame = webview()->mainFrame(); 5177 WebFrame* main_frame = webview()->mainFrame();
5196 if (!main_frame) 5178 if (!main_frame)
5197 return; 5179 return;
5198 main_frame->enableViewSourceMode(true); 5180 main_frame->enableViewSourceMode(true);
5199 } 5181 }
5200 5182
5201 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5183 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5202 return !!RenderThreadImpl::current()->compositor_thread(); 5184 return !!RenderThreadImpl::current()->compositor_thread();
5203 } 5185 }
5204 5186
5205 void RenderViewImpl::OnJavaBridgeInit() { 5187 void RenderViewImpl::OnJavaBridgeInit() {
5206 DCHECK(!java_bridge_dispatcher_.get()); 5188 DCHECK(!java_bridge_dispatcher_.get());
5207 #if defined(ENABLE_JAVA_BRIDGE) 5189 #if defined(ENABLE_JAVA_BRIDGE)
5208 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5190 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5209 #endif 5191 #endif
5210 } 5192 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | ppapi/c/private/ppb_flash_net_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698