Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 9360014: Create a content public browser API around the ChildProcessSecurityPolicy class. The implementati... (Closed)

Created:
8 years, 10 months ago by ananta
Modified:
8 years, 10 months ago
Reviewers:
jam
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, nkostylev+watch_chromium.org, achuith+watch_chromium.org, amit, ajwong+watch_chromium.org, jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, robertshield, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Create a content public browser API around the ChildProcessSecurityPolicy class. The implementation of this interface lives in content\browser\child_process_security_policy_impl.cc/.h. Moved some security checks from the TabContentsDelegate implementation (chrome\browser) to the TabContents code in content. BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=121137

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 22

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -958 lines) Patch
M chrome/browser/DEPS View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/registration_screen.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_api.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_page_capture_api.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 2 chunks +2 lines, -1 line 0 comments Download
D content/browser/child_process_security_policy.h View 1 chunk +0 lines, -213 lines 0 comments Download
D content/browser/child_process_security_policy.cc View 1 chunk +0 lines, -517 lines 0 comments Download
M content/browser/child_process_security_policy_browsertest.cc View 1 2 3 4 5 5 chunks +10 lines, -6 lines 0 comments Download
A + content/browser/child_process_security_policy_impl.h View 1 2 3 4 6 chunks +23 lines, -50 lines 0 comments Download
A + content/browser/child_process_security_policy_impl.cc View 24 chunks +49 lines, -40 lines 0 comments Download
M content/browser/child_process_security_policy_unittest.cc View 1 2 3 4 5 16 chunks +30 lines, -16 lines 0 comments Download
M content/browser/debugger/devtools_manager_impl.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/blob_message_filter.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/file_utilities_message_filter.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/mock_render_process_host.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper_file_message_filter.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 6 chunks +10 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 6 chunks +9 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 11 chunks +15 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 7 chunks +9 lines, -9 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/site_instance_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/tab_contents/navigation_controller_impl.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 6 chunks +12 lines, -5 lines 0 comments Download
M content/browser/webui/web_ui_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M content/content_browser.gypi View 2 chunks +3 lines, -2 lines 0 comments Download
A content/public/browser/child_process_security_policy.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ananta
8 years, 10 months ago (2012-02-08 09:33:55 UTC) #1
jam
lgtm, thanks! please also update chrome\browser\DEPS http://codereview.chromium.org/9360014/diff/5005/chrome_frame/urlmon_url_request.cc File chrome_frame/urlmon_url_request.cc (right): http://codereview.chromium.org/9360014/diff/5005/chrome_frame/urlmon_url_request.cc#newcode308 chrome_frame/urlmon_url_request.cc:308: if (previously_redirected.is_valid() && ...
8 years, 10 months ago (2012-02-08 18:51:12 UTC) #2
ananta
https://chromiumcodereview.appspot.com/9360014/diff/5005/content/browser/child_process_security_policy_impl.h File content/browser/child_process_security_policy_impl.h (right): https://chromiumcodereview.appspot.com/9360014/diff/5005/content/browser/child_process_security_policy_impl.h#newcode5 content/browser/child_process_security_policy_impl.h:5: #ifndef CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ On 2012/02/08 18:51:12, John Abd-El-Malek wrote: > ...
8 years, 10 months ago (2012-02-08 19:36:41 UTC) #3
jam
8 years, 10 months ago (2012-02-08 19:40:14 UTC) #4
https://chromiumcodereview.appspot.com/9360014/diff/5005/content/public/brows...
File content/public/browser/child_process_security_policy.h (right):

https://chromiumcodereview.appspot.com/9360014/diff/5005/content/public/brows...
content/public/browser/child_process_security_policy.h:9: #include <set>
On 2012/02/08 19:36:41, ananta wrote:
> On 2012/02/08 18:51:12, John Abd-El-Malek wrote:
> > nit: not needed
> I added that to address a lint warning. We use set below in the
> RegisterDisabledScheme method.
> 

oops, i must have searched wrong, nvm

Powered by Google App Engine
This is Rietveld 408576698