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

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 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 IPC_MESSAGE_HANDLER(ViewMsg_DisableScrollbarsForSmallWindows, 1241 IPC_MESSAGE_HANDLER(ViewMsg_DisableScrollbarsForSmallWindows,
1242 OnDisableScrollbarsForSmallWindows) 1242 OnDisableScrollbarsForSmallWindows)
1243 IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs) 1243 IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs)
1244 IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt) 1244 IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt)
1245 IPC_MESSAGE_HANDLER(ViewMsg_OrientationChangeEvent, 1245 IPC_MESSAGE_HANDLER(ViewMsg_OrientationChangeEvent,
1246 OnOrientationChangeEvent) 1246 OnOrientationChangeEvent)
1247 IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt) 1247 IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt)
1248 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive) 1248 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
1249 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction, 1249 IPC_MESSAGE_HANDLER(ViewMsg_CustomContextMenuAction,
1250 OnCustomContextMenuAction) 1250 OnCustomContextMenuAction)
1251 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened) 1251 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenPepperFile_ACK,
1252 OnAsyncPepperFileOpened)
1252 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated, 1253 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated,
1253 OnPpapiBrokerChannelCreated) 1254 OnPpapiBrokerChannelCreated)
1254 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult, 1255 IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult,
1255 OnPpapiBrokerPermissionResult) 1256 OnPpapiBrokerPermissionResult)
1256 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 1257 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
1257 OnGetAllSavableResourceLinksForCurrentPage) 1258 OnGetAllSavableResourceLinksForCurrentPage)
1258 IPC_MESSAGE_HANDLER( 1259 IPC_MESSAGE_HANDLER(
1259 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 1260 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
1260 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks) 1261 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks)
1261 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) 1262 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed)
(...skipping 5237 matching lines...) Expand 10 before | Expand all | Expand 10 after
6499 bool RenderViewImpl::openDateTimeChooser( 6500 bool RenderViewImpl::openDateTimeChooser(
6500 const WebKit::WebDateTimeChooserParams& params, 6501 const WebKit::WebDateTimeChooserParams& params,
6501 WebKit::WebDateTimeChooserCompletion* completion) { 6502 WebKit::WebDateTimeChooserCompletion* completion) {
6502 date_time_picker_client_.reset( 6503 date_time_picker_client_.reset(
6503 new RendererDateTimePicker(this, params, completion)); 6504 new RendererDateTimePicker(this, params, completion));
6504 return date_time_picker_client_->Open(); 6505 return date_time_picker_client_->Open();
6505 } 6506 }
6506 6507
6507 #endif // defined(OS_ANDROID) 6508 #endif // defined(OS_ANDROID)
6508 6509
6509 void RenderViewImpl::OnAsyncFileOpened( 6510 void RenderViewImpl::OnAsyncPepperFileOpened(
6510 base::PlatformFileError error_code, 6511 base::PlatformFileError error_code,
6511 IPC::PlatformFileForTransit file_for_transit, 6512 IPC::PlatformFileForTransit file_for_transit,
6512 int message_id) { 6513 int message_id) {
6513 pepper_helper_->OnAsyncFileOpened( 6514 pepper_helper_->OnAsyncFileOpened(
6514 error_code, 6515 error_code,
6515 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), 6516 IPC::PlatformFileForTransitToPlatformFile(file_for_transit),
6516 message_id); 6517 message_id);
6517 } 6518 }
6518 6519
6519 void RenderViewImpl::OnPpapiBrokerChannelCreated( 6520 void RenderViewImpl::OnPpapiBrokerChannelCreated(
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
6739 WebURL url = icon_urls[i].iconURL(); 6740 WebURL url = icon_urls[i].iconURL();
6740 if (!url.isEmpty()) 6741 if (!url.isEmpty())
6741 urls.push_back(FaviconURL(url, 6742 urls.push_back(FaviconURL(url,
6742 ToFaviconType(icon_urls[i].iconType()))); 6743 ToFaviconType(icon_urls[i].iconType())));
6743 } 6744 }
6744 SendUpdateFaviconURL(urls); 6745 SendUpdateFaviconURL(urls);
6745 } 6746 }
6746 6747
6747 6748
6748 } // namespace content 6749 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698