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

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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 IPC_MESSAGE_HANDLER(ViewMsg_DisableScrollbarsForSmallWindows, 1251 IPC_MESSAGE_HANDLER(ViewMsg_DisableScrollbarsForSmallWindows,
1252 OnDisableScrollbarsForSmallWindows) 1252 OnDisableScrollbarsForSmallWindows)
1253 IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs) 1253 IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs)
1254 IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt) 1254 IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt)
1255 IPC_MESSAGE_HANDLER(ViewMsg_OrientationChangeEvent, 1255 IPC_MESSAGE_HANDLER(ViewMsg_OrientationChangeEvent,
1256 OnOrientationChangeEvent) 1256 OnOrientationChangeEvent)
1257 IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt) 1257 IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt)
1258 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive) 1258 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
1259 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction, 1259 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction,
1260 OnCustomContextMenuAction) 1260 OnCustomContextMenuAction)
1261 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened) 1261 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenPepperFile_ACK,
1262 OnAsyncPepperFileOpened)
1262 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated, 1263 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated,
1263 OnPpapiBrokerChannelCreated) 1264 OnPpapiBrokerChannelCreated)
1264 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult, 1265 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult,
1265 OnPpapiBrokerPermissionResult) 1266 OnPpapiBrokerPermissionResult)
1266 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 1267 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
1267 OnGetAllSavableResourceLinksForCurrentPage) 1268 OnGetAllSavableResourceLinksForCurrentPage)
1268 IPC_MESSAGE_HANDLER( 1269 IPC_MESSAGE_HANDLER(
1269 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 1270 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
1270 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks) 1271 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks)
1271 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) 1272 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed)
(...skipping 4889 matching lines...) Expand 10 before | Expand all | Expand 10 after
6161 bool RenderViewImpl::openDateTimeChooser( 6162 bool RenderViewImpl::openDateTimeChooser(
6162 const WebKit::WebDateTimeChooserParams& params, 6163 const WebKit::WebDateTimeChooserParams& params,
6163 WebKit::WebDateTimeChooserCompletion* completion) { 6164 WebKit::WebDateTimeChooserCompletion* completion) {
6164 date_time_picker_client_.reset( 6165 date_time_picker_client_.reset(
6165 new RendererDateTimePicker(this, params, completion)); 6166 new RendererDateTimePicker(this, params, completion));
6166 return date_time_picker_client_->Open(); 6167 return date_time_picker_client_->Open();
6167 } 6168 }
6168 6169
6169 #endif // defined(OS_ANDROID) 6170 #endif // defined(OS_ANDROID)
6170 6171
6171 void RenderViewImpl::OnAsyncFileOpened( 6172 void RenderViewImpl::OnAsyncPepperFileOpened(
6172 base::PlatformFileError error_code, 6173 base::PlatformFileError error_code,
6173 IPC::PlatformFileForTransit file_for_transit, 6174 IPC::PlatformFileForTransit file_for_transit,
6174 int message_id) { 6175 int message_id) {
6175 pepper_helper_->OnAsyncFileOpened( 6176 pepper_helper_->OnAsyncFileOpened(
6176 error_code, 6177 error_code,
6177 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), 6178 IPC::PlatformFileForTransitToPlatformFile(file_for_transit),
6178 message_id); 6179 message_id);
6179 } 6180 }
6180 6181
6181 void RenderViewImpl::OnPpapiBrokerChannelCreated( 6182 void RenderViewImpl::OnPpapiBrokerChannelCreated(
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
6403 WebURL url = icon_urls[i].iconURL(); 6404 WebURL url = icon_urls[i].iconURL();
6404 if (!url.isEmpty()) 6405 if (!url.isEmpty())
6405 urls.push_back(FaviconURL(url, 6406 urls.push_back(FaviconURL(url,
6406 ToFaviconType(icon_urls[i].iconType()))); 6407 ToFaviconType(icon_urls[i].iconType())));
6407 } 6408 }
6408 SendUpdateFaviconURL(urls); 6409 SendUpdateFaviconURL(urls);
6409 } 6410 }
6410 6411
6411 6412
6412 } // namespace content 6413 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698