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

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

Issue 19723010: Pepper Message Filters: Port to use explicit permission grants in ChildProcessSecurityPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0044-write-support-remove-child-process-security-policy-bitmask-usage
Patch Set: Created 7 years, 5 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
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 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 IPC_MESSAGE_HANDLER(ViewMsg_DisableScrollbarsForSmallWindows, 1247 IPC_MESSAGE_HANDLER(ViewMsg_DisableScrollbarsForSmallWindows,
1248 OnDisableScrollbarsForSmallWindows) 1248 OnDisableScrollbarsForSmallWindows)
1249 IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs) 1249 IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs)
1250 IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt) 1250 IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt)
1251 IPC_MESSAGE_HANDLER(ViewMsg_OrientationChangeEvent, 1251 IPC_MESSAGE_HANDLER(ViewMsg_OrientationChangeEvent,
1252 OnOrientationChangeEvent) 1252 OnOrientationChangeEvent)
1253 IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt) 1253 IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt)
1254 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive) 1254 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
1255 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction, 1255 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction,
1256 OnCustomContextMenuAction) 1256 OnCustomContextMenuAction)
1257 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened) 1257 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenPepperFile_ACK,
1258 OnAsyncPepperFileOpened)
1258 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated, 1259 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated,
1259 OnPpapiBrokerChannelCreated) 1260 OnPpapiBrokerChannelCreated)
1260 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult, 1261 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult,
1261 OnPpapiBrokerPermissionResult) 1262 OnPpapiBrokerPermissionResult)
1262 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 1263 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
1263 OnGetAllSavableResourceLinksForCurrentPage) 1264 OnGetAllSavableResourceLinksForCurrentPage)
1264 IPC_MESSAGE_HANDLER( 1265 IPC_MESSAGE_HANDLER(
1265 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 1266 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
1266 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks) 1267 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks)
1267 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) 1268 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed)
(...skipping 5253 matching lines...) Expand 10 before | Expand all | Expand 10 after
6521 bool RenderViewImpl::openDateTimeChooser( 6522 bool RenderViewImpl::openDateTimeChooser(
6522 const WebKit::WebDateTimeChooserParams& params, 6523 const WebKit::WebDateTimeChooserParams& params,
6523 WebKit::WebDateTimeChooserCompletion* completion) { 6524 WebKit::WebDateTimeChooserCompletion* completion) {
6524 date_time_picker_client_.reset( 6525 date_time_picker_client_.reset(
6525 new RendererDateTimePicker(this, params, completion)); 6526 new RendererDateTimePicker(this, params, completion));
6526 return date_time_picker_client_->Open(); 6527 return date_time_picker_client_->Open();
6527 } 6528 }
6528 6529
6529 #endif // defined(OS_ANDROID) 6530 #endif // defined(OS_ANDROID)
6530 6531
6531 void RenderViewImpl::OnAsyncFileOpened( 6532 void RenderViewImpl::OnAsyncPepperFileOpened(
6532 base::PlatformFileError error_code, 6533 base::PlatformFileError error_code,
6533 IPC::PlatformFileForTransit file_for_transit, 6534 IPC::PlatformFileForTransit file_for_transit,
6534 int message_id) { 6535 int message_id) {
6535 pepper_helper_->OnAsyncFileOpened( 6536 pepper_helper_->OnAsyncFileOpened(
6536 error_code, 6537 error_code,
6537 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), 6538 IPC::PlatformFileForTransitToPlatformFile(file_for_transit),
6538 message_id); 6539 message_id);
6539 } 6540 }
6540 6541
6541 void RenderViewImpl::OnPpapiBrokerChannelCreated( 6542 void RenderViewImpl::OnPpapiBrokerChannelCreated(
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
6761 WebURL url = icon_urls[i].iconURL(); 6762 WebURL url = icon_urls[i].iconURL();
6762 if (!url.isEmpty()) 6763 if (!url.isEmpty())
6763 urls.push_back(FaviconURL(url, 6764 urls.push_back(FaviconURL(url,
6764 ToFaviconType(icon_urls[i].iconType()))); 6765 ToFaviconType(icon_urls[i].iconType())));
6765 } 6766 }
6766 SendUpdateFaviconURL(urls); 6767 SendUpdateFaviconURL(urls);
6767 } 6768 }
6768 6769
6769 6770
6770 } // namespace content 6771 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698