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

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

Issue 8275012: Remove RemoteAccessClientFirewallTraversal policy and code paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-rebase Created 9 years, 2 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/api/dev/ppb_query_policy_dev.idl » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) 657 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem)
658 #endif 658 #endif
659 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) 659 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed)
660 // TODO(viettrungluu): Move to a separate message filter. 660 // TODO(viettrungluu): Move to a separate message filter.
661 #if defined(ENABLE_FLAPPER_HACKS) 661 #if defined(ENABLE_FLAPPER_HACKS)
662 IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK) 662 IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK)
663 #endif 663 #endif
664 #if defined(OS_MACOSX) 664 #if defined(OS_MACOSX)
665 IPC_MESSAGE_HANDLER(ViewMsg_SetInLiveResize, OnSetInLiveResize) 665 IPC_MESSAGE_HANDLER(ViewMsg_SetInLiveResize, OnSetInLiveResize)
666 #endif 666 #endif
667 IPC_MESSAGE_HANDLER(ViewMsg_UpdateRemoteAccessClientFirewallTraversal,
668 OnUpdateRemoteAccessClientFirewallTraversal)
669 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryLengthAndPrune, 667 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryLengthAndPrune,
670 OnSetHistoryLengthAndPrune) 668 OnSetHistoryLengthAndPrune)
671 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode) 669 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode)
672 IPC_MESSAGE_HANDLER(ViewMsg_LockMouse_ACK, OnLockMouseACK) 670 IPC_MESSAGE_HANDLER(ViewMsg_LockMouse_ACK, OnLockMouseACK)
673 IPC_MESSAGE_HANDLER(ViewMsg_MouseLockLost, OnMouseLockLost) 671 IPC_MESSAGE_HANDLER(ViewMsg_MouseLockLost, OnMouseLockLost)
674 672
675 // Have the super handle all other messages. 673 // Have the super handle all other messages.
676 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) 674 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message))
677 IPC_END_MESSAGE_MAP() 675 IPC_END_MESSAGE_MAP()
678 676
(...skipping 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after
3681 3679
3682 void RenderViewImpl::OnDragSourceSystemDragEnded() { 3680 void RenderViewImpl::OnDragSourceSystemDragEnded() {
3683 webview()->dragSourceSystemDragEnded(); 3681 webview()->dragSourceSystemDragEnded();
3684 } 3682 }
3685 3683
3686 void RenderViewImpl::OnUpdateWebPreferences(const WebPreferences& prefs) { 3684 void RenderViewImpl::OnUpdateWebPreferences(const WebPreferences& prefs) {
3687 webkit_preferences_ = prefs; 3685 webkit_preferences_ = prefs;
3688 webkit_preferences_.Apply(webview()); 3686 webkit_preferences_.Apply(webview());
3689 } 3687 }
3690 3688
3691 void RenderViewImpl::OnUpdateRemoteAccessClientFirewallTraversal(
3692 const std::string& policy) {
3693 pepper_delegate_.PublishPolicy(policy);
3694 }
3695
3696 void RenderViewImpl::OnSetAltErrorPageURL(const GURL& url) { 3689 void RenderViewImpl::OnSetAltErrorPageURL(const GURL& url) {
3697 alternate_error_page_url_ = url; 3690 alternate_error_page_url_ = url;
3698 } 3691 }
3699 3692
3700 void RenderViewImpl::OnCustomContextMenuAction( 3693 void RenderViewImpl::OnCustomContextMenuAction(
3701 const webkit_glue::CustomContextMenuContext& custom_context, 3694 const webkit_glue::CustomContextMenuContext& custom_context,
3702 unsigned action) { 3695 unsigned action) {
3703 if (custom_context.is_pepper_menu) 3696 if (custom_context.is_pepper_menu)
3704 pepper_delegate_.OnCustomContextMenuAction(custom_context, action); 3697 pepper_delegate_.OnCustomContextMenuAction(custom_context, action);
3705 else 3698 else
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
4210 void RenderViewImpl::PpapiPluginTextInputTypeChanged() { 4203 void RenderViewImpl::PpapiPluginTextInputTypeChanged() {
4211 UpdateTextInputState(); 4204 UpdateTextInputState();
4212 } 4205 }
4213 4206
4214 void RenderViewImpl::PpapiPluginCancelComposition() { 4207 void RenderViewImpl::PpapiPluginCancelComposition() {
4215 Send(new ViewHostMsg_ImeCancelComposition(routing_id())); 4208 Send(new ViewHostMsg_ImeCancelComposition(routing_id()));
4216 ui::Range range(ui::Range::InvalidRange()); 4209 ui::Range range(ui::Range::InvalidRange());
4217 Send(new ViewHostMsg_ImeCompositionRangeChanged(routing_id(), range)); 4210 Send(new ViewHostMsg_ImeCompositionRangeChanged(routing_id(), range));
4218 } 4211 }
4219 4212
4220 void RenderViewImpl::RequestRemoteAccessClientFirewallTraversal() {
4221 Send(new ViewHostMsg_RequestRemoteAccessClientFirewallTraversal(routing_id_));
4222 }
4223
4224 void RenderViewImpl::OnImeSetComposition( 4213 void RenderViewImpl::OnImeSetComposition(
4225 const string16& text, 4214 const string16& text,
4226 const std::vector<WebKit::WebCompositionUnderline>& underlines, 4215 const std::vector<WebKit::WebCompositionUnderline>& underlines,
4227 int selection_start, 4216 int selection_start,
4228 int selection_end) { 4217 int selection_end) {
4229 if (pepper_delegate_.IsPluginFocused()) { 4218 if (pepper_delegate_.IsPluginFocused()) {
4230 // When a PPAPI plugin has focus, we bypass WebKit. 4219 // When a PPAPI plugin has focus, we bypass WebKit.
4231 pepper_delegate_.OnImeSetComposition(text, 4220 pepper_delegate_.OnImeSetComposition(text,
4232 underlines, 4221 underlines,
4233 selection_start, 4222 selection_start,
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
4639 pepper_delegate_.OnLockMouseACK(succeeded); 4628 pepper_delegate_.OnLockMouseACK(succeeded);
4640 } 4629 }
4641 4630
4642 void RenderViewImpl::OnMouseLockLost() { 4631 void RenderViewImpl::OnMouseLockLost() {
4643 pepper_delegate_.OnMouseLockLost(); 4632 pepper_delegate_.OnMouseLockLost();
4644 } 4633 }
4645 4634
4646 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 4635 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
4647 return webview()->settings()->useThreadedCompositor(); 4636 return webview()->settings()->useThreadedCompositor();
4648 } 4637 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | ppapi/api/dev/ppb_query_policy_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698