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

Issue 9580002: Add ResourceRequestInfo. (Closed)

Created:
8 years, 9 months ago by darin (slow to review)
Modified:
8 years, 9 months ago
Reviewers:
jam
CC:
chromium-reviews, robertshield, nkostylev+watch_chromium.org, kkania, yoshiki+watch_chromium.org, jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org, stuartmorgan+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add ResourceRequestInfo. ResourceRequestInfo exposes the members of ResourceDispatcherHostRequestInfo required by src/chrome. ResourceDispatcherHostRequestInfo remains for use by src/content (maybe it should have a different name), and ResourceDispatcherHostRequestInfo subclasses ResourceRequestInfo. ResourceDispatcherHost::RenderViewForRequest is removed in favor of ResourceRequestInfo::GetAssociatedRenderView(). src/chrome uses ResourceRequestInfo::ForRequest(URLRequest*) instead of ResourceDispatcherHost::InfoForRequest. Deletes DummyResourceHandler in favor of just having ~ResourceDispatcherHostRequestInfo null-test its ResourceHandler. R=jam@chromium.org TBR=mirandac@chromium.org,ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=125457

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+526 lines, -861 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/automation/url_request_automation_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/gview_request_interceptor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/gview_request_interceptor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +3 lines, -27 lines 0 comments Download
M chrome/browser/extensions/api/webrequest/webrequest_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_protocols.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/user_script_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/external_tab_container_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/plugin_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/renderer_host/offline_resource_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/transfer_navigation_resource_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +10 lines, -13 lines 0 comments Download
M chrome/browser/ssl/ssl_add_cert_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/login/login_prompt.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +5 lines, -9 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 10 chunks +21 lines, -18 lines 0 comments Download
M content/browser/renderer_host/cross_site_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +4 lines, -4 lines 0 comments Download
D content/browser/renderer_host/dummy_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -46 lines 0 comments Download
D content/browser/renderer_host/dummy_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -56 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +9 lines, -12 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 57 chunks +111 lines, -120 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -272 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -84 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_request_details.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -6 lines 0 comments Download
A + content/browser/renderer_host/resource_request_info_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +48 lines, -71 lines 0 comments Download
A + content/browser/renderer_host/resource_request_info_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +124 lines, -12 lines 0 comments Download
M content/browser/renderer_host/x509_user_cert_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M content/browser/ssl/ssl_client_auth_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +4 lines, -3 lines 0 comments Download
M content/browser/ssl/ssl_error_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +6 lines, -7 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +5 lines, -4 lines 0 comments Download
M content/browser/worker_host/worker_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -2 lines 0 comments Download
A content/public/browser/resource_request_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +86 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
darin (slow to review)
8 years, 9 months ago (2012-03-03 00:30:47 UTC) #1
jam
http://codereview.chromium.org/9580002/diff/4052/content/public/browser/resource_request_info.h File content/public/browser/resource_request_info.h (right): http://codereview.chromium.org/9580002/diff/4052/content/public/browser/resource_request_info.h#newcode21 content/public/browser/resource_request_info.h:21: class ResourceRequestInfo : public base::SupportsUserData::Data { nit: please add ...
8 years, 9 months ago (2012-03-05 07:16:17 UTC) #2
darin (slow to review)
On Sun, Mar 4, 2012 at 11:16 PM, <jam@chromium.org> wrote: > > http://codereview.chromium.**org/9580002/diff/4052/content/** > public/browser/resource_**request_info.h<http://codereview.chromium.org/9580002/diff/4052/content/public/browser/resource_request_info.h> ...
8 years, 9 months ago (2012-03-05 07:50:50 UTC) #3
jam
On Sun, Mar 4, 2012 at 11:50 PM, Darin Fisher <darin@chromium.org> wrote: > > > ...
8 years, 9 months ago (2012-03-05 07:58:50 UTC) #4
jam
On Sun, Mar 4, 2012 at 11:58 PM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
8 years, 9 months ago (2012-03-05 08:04:39 UTC) #5
darin (slow to review)
On Mon, Mar 5, 2012 at 12:04 AM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
8 years, 9 months ago (2012-03-05 16:40:41 UTC) #6
darin (slow to review)
PTAL. There's more to cleanup after this change. For example, I want to remove ResourceDispatcherHost::RenderViewForRequest, ...
8 years, 9 months ago (2012-03-06 18:05:37 UTC) #7
darin (slow to review)
http://codereview.chromium.org/9580002/diff/18022/content/public/browser/resource_request_info.h File content/public/browser/resource_request_info.h (right): http://codereview.chromium.org/9580002/diff/18022/content/public/browser/resource_request_info.h#newcode32 content/public/browser/resource_request_info.h:32: CONTENT_EXPORT static void DecorateForTesting( Maybe "Decorate" is an abnormal ...
8 years, 9 months ago (2012-03-06 18:08:23 UTC) #8
jam
lgtm http://codereview.chromium.org/9580002/diff/18022/content/public/browser/resource_request_info.h File content/public/browser/resource_request_info.h (right): http://codereview.chromium.org/9580002/diff/18022/content/public/browser/resource_request_info.h#newcode32 content/public/browser/resource_request_info.h:32: CONTENT_EXPORT static void DecorateForTesting( On 2012/03/06 18:08:23, darin ...
8 years, 9 months ago (2012-03-06 18:48:57 UTC) #9
darin (slow to review)
On Tue, Mar 6, 2012 at 10:48 AM, <jam@chromium.org> wrote: > lgtm > > > ...
8 years, 9 months ago (2012-03-06 22:44:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/darin@chromium.org/9580002/19057
8 years, 9 months ago (2012-03-07 01:10:10 UTC) #11
commit-bot: I haz the power
Can't apply patch for file content/browser/renderer_host/resource_request_info_impl.cc. While running patch -p0 --forward --force; patching file content/browser/renderer_host/resource_request_info_impl.cc ...
8 years, 9 months ago (2012-03-07 01:10:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/darin@chromium.org/9580002/17061
8 years, 9 months ago (2012-03-07 18:27:32 UTC) #13
commit-bot: I haz the power
Can't apply patch for file chrome/browser/renderer_host/transfer_navigation_resource_throttle.cc. While running patch -p0 --forward --force; patching file chrome/browser/renderer_host/transfer_navigation_resource_throttle.cc ...
8 years, 9 months ago (2012-03-07 18:27:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/darin@chromium.org/9580002/23002
8 years, 9 months ago (2012-03-07 18:43:49 UTC) #15
commit-bot: I haz the power
8 years, 9 months ago (2012-03-07 18:44:02 UTC) #16
Can't apply patch for file
content/browser/renderer_host/resource_request_info_impl.cc.
While running patch -p0 --forward --force;
patching file content/browser/renderer_host/resource_request_info_impl.cc
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 22.
Hunk #3 FAILED at 59.
3 out of 3 hunks FAILED -- saving rejects to file
content/browser/renderer_host/resource_request_info_impl.cc.rej

Powered by Google App Engine
This is Rietveld 408576698