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

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

Issue 10854040: Add hooks to content to request permission to connect to the PPAPI broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted, 938 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted,
939 OnPluginImeCompositionCompleted) 939 OnPluginImeCompositionCompleted)
940 #endif 940 #endif
941 IPC_MESSAGE_HANDLER(ViewMsg_SetEditCommandsForNextKeyEvent, 941 IPC_MESSAGE_HANDLER(ViewMsg_SetEditCommandsForNextKeyEvent,
942 OnSetEditCommandsForNextKeyEvent) 942 OnSetEditCommandsForNextKeyEvent)
943 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction, 943 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction,
944 OnCustomContextMenuAction) 944 OnCustomContextMenuAction)
945 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened) 945 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened)
946 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated, 946 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated,
947 OnPpapiBrokerChannelCreated) 947 OnPpapiBrokerChannelCreated)
948 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult,
949 OnPpapiBrokerPermissionResult)
948 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 950 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
949 OnGetAllSavableResourceLinksForCurrentPage) 951 OnGetAllSavableResourceLinksForCurrentPage)
950 IPC_MESSAGE_HANDLER( 952 IPC_MESSAGE_HANDLER(
951 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 953 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
952 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks) 954 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks)
953 #if defined(OS_MACOSX) 955 #if defined(OS_MACOSX)
954 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) 956 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem)
955 #elif defined(OS_ANDROID) 957 #elif defined(OS_ANDROID)
956 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItems, OnSelectPopupMenuItems) 958 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItems, OnSelectPopupMenuItems)
957 #endif 959 #endif
(...skipping 4779 matching lines...) Expand 10 before | Expand all | Expand 10 after
5737 message_id); 5739 message_id);
5738 } 5740 }
5739 5741
5740 void RenderViewImpl::OnPpapiBrokerChannelCreated( 5742 void RenderViewImpl::OnPpapiBrokerChannelCreated(
5741 int request_id, 5743 int request_id,
5742 const IPC::ChannelHandle& handle) { 5744 const IPC::ChannelHandle& handle) {
5743 pepper_delegate_.OnPpapiBrokerChannelCreated(request_id, 5745 pepper_delegate_.OnPpapiBrokerChannelCreated(request_id,
5744 handle); 5746 handle);
5745 } 5747 }
5746 5748
5749 void RenderViewImpl::OnPpapiBrokerPermissionResult(
5750 int request_id,
5751 bool result) {
5752 pepper_delegate_.OnPpapiBrokerPermissionResult(request_id, result);
5753 }
5754
5747 #if defined(OS_MACOSX) 5755 #if defined(OS_MACOSX)
5748 void RenderViewImpl::OnSelectPopupMenuItem(int selected_index) { 5756 void RenderViewImpl::OnSelectPopupMenuItem(int selected_index) {
5749 if (external_popup_menu_ == NULL) { 5757 if (external_popup_menu_ == NULL) {
5750 // Crash reports from the field indicate that we can be notified with a 5758 // Crash reports from the field indicate that we can be notified with a
5751 // NULL external popup menu (we probably get notified twice). 5759 // NULL external popup menu (we probably get notified twice).
5752 // If you hit this please file a bug against jcivelli and include the page 5760 // If you hit this please file a bug against jcivelli and include the page
5753 // and steps to repro. 5761 // and steps to repro.
5754 NOTREACHED(); 5762 NOTREACHED();
5755 return; 5763 return;
5756 } 5764 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
5795 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5803 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5796 return !!RenderThreadImpl::current()->compositor_thread(); 5804 return !!RenderThreadImpl::current()->compositor_thread();
5797 } 5805 }
5798 5806
5799 void RenderViewImpl::OnJavaBridgeInit() { 5807 void RenderViewImpl::OnJavaBridgeInit() {
5800 DCHECK(!java_bridge_dispatcher_); 5808 DCHECK(!java_bridge_dispatcher_);
5801 #if defined(ENABLE_JAVA_BRIDGE) 5809 #if defined(ENABLE_JAVA_BRIDGE)
5802 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5810 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5803 #endif 5811 #endif
5804 } 5812 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698