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

Issue 7706021: Convert FileRefImpl and URLRequestInfo to shared_impl. (Closed)

Created:
9 years, 4 months ago by brettw
Modified:
9 years, 4 months ago
Reviewers:
bbudge
CC:
chromium-reviews, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Convert FileRefImpl and URLRequestInfo to shared_impl. One nice side effect of this change is that there are no longer any IPCs associated with the request info. Instead, we just send the parameters to the host when we open a url loader. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98391

Patch Set 1 #

Total comments: 1

Patch Set 2 : Minor fixes #

Total comments: 12

Patch Set 3 : Comments addressed. #

Patch Set 4 : Tests fixed #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1203 lines, -941 lines) Patch
M ppapi/ppapi_shared.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 8 chunks +38 lines, -25 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.h View 1 2 4 chunks +6 lines, -5 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.cc View 3 chunks +16 lines, -18 lines 0 comments Download
M ppapi/proxy/ppb_file_chooser_proxy.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_file_chooser_proxy.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.h View 3 chunks +5 lines, -6 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.cc View 7 chunks +15 lines, -73 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 2 chunks +5 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 3 chunks +34 lines, -9 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.h View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.cc View 1 3 chunks +18 lines, -9 lines 0 comments Download
M ppapi/proxy/ppb_url_request_info_proxy.h View 2 chunks +3 lines, -21 lines 0 comments Download
M ppapi/proxy/ppb_url_request_info_proxy.cc View 3 chunks +3 lines, -160 lines 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.h View 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M ppapi/proxy/serialized_structs.h View 1 chunk +0 lines, -11 lines 0 comments Download
M ppapi/proxy/serialized_structs.cc View 1 chunk +0 lines, -4 lines 0 comments Download
A ppapi/shared_impl/file_ref_impl.h View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A ppapi/shared_impl/file_ref_impl.cc View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
M ppapi/shared_impl/scoped_pp_resource.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/shared_impl/scoped_pp_resource.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A ppapi/shared_impl/url_request_info_impl.h View 1 2 1 chunk +143 lines, -0 lines 1 comment Download
A ppapi/shared_impl/url_request_info_impl.cc View 1 2 3 1 chunk +337 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var.h View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/var.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/tests/test_url_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_url_loader.cc View 2 chunks +14 lines, -3 lines 0 comments Download
M ppapi/thunk/enter.h View 2 chunks +5 lines, -4 lines 0 comments Download
M ppapi/thunk/ppb_file_ref_api.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_url_request_info_api.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_url_request_info_thunk.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/thunk/resource_creation_api.h View 2 chunks +6 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_directory_reader_impl.cc View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_chooser_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.h View 1 2 3 chunks +18 lines, -27 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.cc View 1 2 5 chunks +68 lines, -78 lines 1 comment Download
M webkit/plugins/ppapi/ppb_url_loader_impl.h View 2 chunks +7 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.cc View 1 2 7 chunks +18 lines, -15 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_request_info_impl.h View 1 chunk +24 lines, -80 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_request_info_impl.cc View 1 2 4 chunks +111 lines, -279 lines 2 comments Download
M webkit/plugins/ppapi/ppb_url_response_info_impl.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 chunk +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 3 2 chunks +6 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/url_request_info_unittest.cc View 1 2 3 5 chunks +95 lines, -80 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
brettw
http://codereview.chromium.org/7706021/diff/1/ppapi/tests/test_url_loader.cc File ppapi/tests/test_url_loader.cc (right): http://codereview.chromium.org/7706021/diff/1/ppapi/tests/test_url_loader.cc#newcode323 ppapi/tests/test_url_loader.cc:323: int32_t rv = loader.Open(request, callback); This test changed because ...
9 years, 4 months ago (2011-08-22 22:44:28 UTC) #1
bbudge
Darin and I have discussed moving the request validation logic down into Webkit and I'm ...
9 years, 4 months ago (2011-08-23 20:35:58 UTC) #2
brettw
Thanks, new snap up. http://codereview.chromium.org/7706021/diff/2002/ppapi/proxy/ppapi_param_traits.h File ppapi/proxy/ppapi_param_traits.h (right): http://codereview.chromium.org/7706021/diff/2002/ppapi/proxy/ppapi_param_traits.h#newcode16 ppapi/proxy/ppapi_param_traits.h:16: #include "ppapi/shared_impl/file_ref_impl.h" It defines FileRef_CreateInfo ...
9 years, 4 months ago (2011-08-24 23:41:09 UTC) #3
brettw
New new snap up. This makes the test_shell_tests compile, which I forgot to update. This ...
9 years, 4 months ago (2011-08-25 16:18:29 UTC) #4
bbudge
9 years, 4 months ago (2011-08-25 19:50:37 UTC) #5
LGTM with nits. Thanks for fixing the test - ASSERT->EXPECT.

http://codereview.chromium.org/7706021/diff/14001/ppapi/shared_impl/url_reque...
File ppapi/shared_impl/url_request_info_impl.h (right):

http://codereview.chromium.org/7706021/diff/14001/ppapi/shared_impl/url_reque...
ppapi/shared_impl/url_request_info_impl.h:13: #include
"ppapi/shared_impl/resource.h"
#include ordering

http://codereview.chromium.org/7706021/diff/14001/webkit/plugins/ppapi/ppb_fi...
File webkit/plugins/ppapi/ppb_file_ref_impl.cc (right):

http://codereview.chromium.org/7706021/diff/14001/webkit/plugins/ppapi/ppb_fi...
webkit/plugins/ppapi/ppb_file_ref_impl.cc:116: file_system->pp_instance());
This fits on a single line.

http://codereview.chromium.org/7706021/diff/14001/webkit/plugins/ppapi/ppb_ur...
File webkit/plugins/ppapi/ppb_url_request_info_impl.cc (right):

http://codereview.chromium.org/7706021/diff/14001/webkit/plugins/ppapi/ppb_ur...
webkit/plugins/ppapi/ppb_url_request_info_impl.cc:133: data().url)));
Single line?

http://codereview.chromium.org/7706021/diff/14001/webkit/plugins/ppapi/ppb_ur...
webkit/plugins/ppapi/ppb_url_request_info_impl.cc:141:
frame->document().firstPartyForCookies());
Single line?

Powered by Google App Engine
This is Rietveld 408576698