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

Issue 2038813003: Making ResourceRequestBody part of //content's public API. (Closed)

Created:
4 years, 6 months ago by Łukasz Anforowicz
Modified:
4 years, 6 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, serviceworker-reviews, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, tzik, nasko+codewatch_chromium.org, jam, nhiroki, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, loading-reviews_chromium.org, kinuko+serviceworker, kinuko+watch, blink-worker-reviews_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Making ResourceRequestBody part of //content's public API. This CL adds support for passing ResourceRequestBody instances outside of //content layer. This will be utilized by a later CL (https://crrev.com/2004653002) that needs to add ResourceRequestBody to OpenURLParams (already part of //content's public API) in order to support passing POST body from a form that targets a remote frame (aka an OOPIF). For now, ResourceRequestBody instances can only be created within //content layer, but this will change in a later CL (https://crrev.com/2038233002) which will enable //content embedder to create ResourceRequestBody from a byte array (supporting existing scenarios, like the public WebView.postUrl API). BUG=344348 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/de80237a90298f7c94686618c27d88cbf2316028 Cr-Commit-Position: refs/heads/master@{#400182}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed CR feedback from creis@. #

Total comments: 6

Patch Set 3 : Addressed nits related to the doc comment for ResourceRequestBody class. #

Patch Set 4 : Rebasing... #

Patch Set 5 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -356 lines) Patch
M content/browser/frame_host/frame_navigation_entry.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/frame_navigation_entry.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request_info.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 chunks +12 lines, -10 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/upload_data_stream_builder.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/loader/upload_data_stream_builder.cc View 5 chunks +21 lines, -19 lines 0 comments Download
M content/browser/loader/upload_data_stream_builder_unittest.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.h View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 6 chunks +13 lines, -13 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/child/resource_dispatcher.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_request_util.h View 2 chunks +7 lines, -7 lines 0 comments Download
M content/child/web_url_request_util.cc View 5 chunks +12 lines, -11 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/common/navigation_params.h View 3 chunks +17 lines, -16 lines 0 comments Download
M content/common/navigation_params.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/page_state_serialization.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/page_state_serialization.cc View 5 chunks +10 lines, -10 lines 0 comments Download
M content/common/page_state_serialization_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/resource_messages.cc View 4 chunks +10 lines, -8 lines 0 comments Download
M content/common/resource_request.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
D content/common/resource_request_body.h View 1 chunk +0 lines, -70 lines 0 comments Download
D content/common/resource_request_body.cc View 1 chunk +0 lines, -54 lines 0 comments Download
A + content/common/resource_request_body_impl.h View 4 chunks +9 lines, -10 lines 0 comments Download
A + content/common/resource_request_body_impl.cc View 4 chunks +7 lines, -10 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/common/page_state.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A content/public/common/resource_request_body.h View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A + content/public/common/resource_request_body.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_render_frame.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (9 generated)
Łukasz Anforowicz
Charlie, could you please take a look? This is a pretty big, but mostly mechanical ...
4 years, 6 months ago (2016-06-04 00:08:31 UTC) #2
Charlie Reis
LGTM, but let's wait to land this until the next one has approvals as well, ...
4 years, 6 months ago (2016-06-07 22:21:00 UTC) #4
Łukasz Anforowicz
Thanks for reviewing. On 2016/06/07 22:21:00, Charlie Reis wrote: > LGTM, but let's wait to ...
4 years, 6 months ago (2016-06-08 16:51:56 UTC) #5
Łukasz Anforowicz
Nasko, can you look at IPC changes?: content/common/frame_messages.h content/common/resource_messages.cc content/common/resource_messages.h
4 years, 6 months ago (2016-06-08 16:52:45 UTC) #7
nasko
IPC LGTM
4 years, 6 months ago (2016-06-08 16:57:39 UTC) #8
Charlie Reis
Still LGTM with nits. https://codereview.chromium.org/2038813003/diff/1/content/public/common/resource_request_body.h File content/public/common/resource_request_body.h (right): https://codereview.chromium.org/2038813003/diff/1/content/public/common/resource_request_body.h#newcode18 content/public/common/resource_request_body.h:18: // ResourceRequestBody represents body (i.e. ...
4 years, 6 months ago (2016-06-08 22:43:20 UTC) #9
Łukasz Anforowicz
Thanks. https://codereview.chromium.org/2038813003/diff/20001/content/public/common/resource_request_body.h File content/public/common/resource_request_body.h (right): https://codereview.chromium.org/2038813003/diff/20001/content/public/common/resource_request_body.h#newcode21 content/public/common/resource_request_body.h:21: // - //content embedders cannot inspect payload of ...
4 years, 6 months ago (2016-06-08 23:22:38 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038813003/80001
4 years, 6 months ago (2016-06-16 15:28:16 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-16 17:09:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038813003/80001
4 years, 6 months ago (2016-06-16 17:10:22 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-16 17:17:35 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 17:18:01 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 17:19:12 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/de80237a90298f7c94686618c27d88cbf2316028
Cr-Commit-Position: refs/heads/master@{#400182}

Powered by Google App Engine
This is Rietveld 408576698