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

Issue 10913257: Convert url request info to new proxy API. (Closed)

Created:
8 years, 3 months ago by brettw
Modified:
8 years, 3 months ago
Reviewers:
bbudge
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Convert url request info to new proxy API. This splits out the helper functions in the in-process version to a new file: url_request_info_util. This will be moved to content/renderer when we move the url_loader. The unit test was moved from webkit/plugins/ppapi to content/renderer/ppapi. I made it a browsertest which allowed the removal of a little boilerplate. I had to add "internal" functions for loading stuff with just the data struct rather than a resource so the proxy doesn't have to create an in-process URLRequestInfo resource (which can't be created now when running out-of-process) just to create a request. This should be a little more efficient now anyway, and these duplicates will go away when such code moves to the new proxy design. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157588

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -1308 lines) Patch
M content/content_tests.gypi View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.cc View 2 chunks +9 lines, -0 lines 0 comments Download
A + content/renderer/pepper/pepper_url_request_unittest.cc View 1 5 chunks +46 lines, -41 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 2 3 chunks +10 lines, -16 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.cc View 1 2 3 4 5 4 chunks +10 lines, -11 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
A ppapi/proxy/url_request_info_resource.h View 1 chunk +55 lines, -0 lines 0 comments Download
A + ppapi/proxy/url_request_info_resource.cc View 8 chunks +23 lines, -84 lines 0 comments Download
D ppapi/shared_impl/ppb_url_request_info_shared.h View 1 chunk +0 lines, -136 lines 0 comments Download
D ppapi/shared_impl/ppb_url_request_info_shared.cc View 1 chunk +0 lines, -276 lines 0 comments Download
A + ppapi/shared_impl/url_request_info_data.h View 3 chunks +13 lines, -52 lines 0 comments Download
A ppapi/shared_impl/url_request_info_data.cc View 1 chunk +70 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_api.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_url_loader_api.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_url_request_info_api.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_url_request_info_thunk.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 3 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 1 2 3 chunks +9 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.cc View 1 2 3 4 6 chunks +22 lines, -15 lines 0 comments Download
D webkit/plugins/ppapi/ppb_url_request_info_impl.h View 1 chunk +0 lines, -61 lines 0 comments Download
D webkit/plugins/ppapi/ppb_url_request_info_impl.cc View 1 chunk +0 lines, -208 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 2 chunks +0 lines, -7 lines 0 comments Download
D webkit/plugins/ppapi/url_request_info_unittest.cc View 1 chunk +0 lines, -259 lines 0 comments Download
A webkit/plugins/ppapi/url_request_info_util.h View 1 chunk +39 lines, -0 lines 0 comments Download
A + webkit/plugins/ppapi/url_request_info_util.cc View 5 chunks +101 lines, -102 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
brettw
Lots of files but most changes are easy and existing stuff moved around. https://codereview.chromium.org/10913257/diff/2002/ppapi/proxy/url_request_info_resource.h File ...
8 years, 3 months ago (2012-09-13 23:23:59 UTC) #1
bbudge
lgtm w/nits http://codereview.chromium.org/10913257/diff/2002/webkit/plugins/ppapi/ppb_url_loader_impl.cc File webkit/plugins/ppapi/ppb_url_loader_impl.cc (left): http://codereview.chromium.org/10913257/diff/2002/webkit/plugins/ppapi/ppb_url_loader_impl.cc#oldcode104 webkit/plugins/ppapi/ppb_url_loader_impl.cc:104: Why don't we need this anymore? http://codereview.chromium.org/10913257/diff/2002/webkit/plugins/ppapi/ppb_url_loader_impl.cc ...
8 years, 3 months ago (2012-09-14 17:48:52 UTC) #2
brettw
8 years, 3 months ago (2012-09-14 22:50:47 UTC) #3
http://codereview.chromium.org/10913257/diff/2002/webkit/plugins/ppapi/ppb_ur...
File webkit/plugins/ppapi/ppb_url_loader_impl.cc (left):

http://codereview.chromium.org/10913257/diff/2002/webkit/plugins/ppapi/ppb_ur...
webkit/plugins/ppapi/ppb_url_loader_impl.cc:104: 
On 2012/09/14 17:48:52, bbudge1 wrote:
> Why don't we need this anymore?

I moved it to the internal version below (so it only exists in one place). I
couldn't think if why it needs to be above or below the request ID validation.

Powered by Google App Engine
This is Rietveld 408576698