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

Issue 1085903002: Enable Sdch in Cronet (Closed)

Created:
5 years, 8 months ago by xunjieli
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable sdch in Cronet This CL combined rdsmith@'s CL(747453004) and mef@'s CL(1073193002), and added tests to make sure sdch works for both the old and the new API. BUG=414885 Committed: https://crrev.com/b8a6d56ffe39823af7b09ce6b816d3cd9fbac2a6 Cr-Commit-Position: refs/heads/master@{#327517}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address Alex's comments #

Patch Set 3 : @params -> @param #

Total comments: 20

Patch Set 4 : Address comments #

Patch Set 5 : self review #

Total comments: 1

Patch Set 6 : Address Misha's comments #

Total comments: 1

Patch Set 7 : Rebased #

Patch Set 8 : Forgot to call super.tearDown() #

Patch Set 9 : Add throw clause #

Patch Set 10 : Remove unnecessary JNI callback #

Patch Set 11 : Make sure a second request to get dictionary is serviced from cache #

Total comments: 15

Patch Set 12 : Address Misha's comments #

Total comments: 2

Patch Set 13 : constants #

Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -28 lines) Patch
M components/cronet/android/chromium_url_request.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequest.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/CronetUrlRequestContext.java View 2 chunks +2 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/HttpUrlConnectionUrlRequest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java View 2 chunks +9 lines, -2 lines 0 comments Download
A components/cronet/android/test/assets/test/sdch/LeQxM80O_encoded View 1 2 3 Binary file 0 comments Download
A + components/cronet/android/test/assets/test/sdch/LeQxM80O_encoded.mock-http-headers View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A components/cronet/android/test/assets/test/sdch/dict/LeQxM80O View 1 chunk +4 lines, -0 lines 0 comments Download
A components/cronet/android/test/assets/test/sdch/dict/LeQxM80O.mock-http-headers View 1 chunk +3 lines, -0 lines 0 comments Download
A components/cronet/android/test/assets/test/sdch/index View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + components/cronet/android/test/assets/test/sdch/index.mock-http-headers View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +218 lines, -0 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/TestHttpUrlRequestListener.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M components/cronet/android/test/native_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +174 lines, -20 lines 0 comments Download
M components/cronet/android/test/src/org/chromium/net/CronetTestActivity.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -3 lines 0 comments Download
M components/cronet/android/test/src/org/chromium/net/NativeTestServer.java View 1 2 3 4 5 6 7 8 9 4 chunks +29 lines, -0 lines 0 comments Download
M components/cronet/android/url_request_adapter.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M components/cronet/android/url_request_adapter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M components/cronet/android/url_request_context_adapter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -3 lines 0 comments Download
M components/cronet/android/url_request_context_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M components/cronet/url_request_context_config.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/cronet/url_request_context_config.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M components/cronet/url_request_context_config_list.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -1 line 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 30 (8 generated)
xunjieli
I added two basic tests to make sure Sdch is working in Cronet. In the ...
5 years, 8 months ago (2015-04-14 17:58:50 UTC) #2
alexraikman
https://codereview.chromium.org/1085903002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java File components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java (right): https://codereview.chromium.org/1085903002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java#newcode86 components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java:86: // Make a request to fetch /sdch/test. I am ...
5 years, 8 months ago (2015-04-14 18:11:33 UTC) #4
xunjieli
https://codereview.chromium.org/1085903002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java File components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java (right): https://codereview.chromium.org/1085903002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java#newcode86 components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java:86: // Make a request to fetch /sdch/test. On 2015/04/14 ...
5 years, 8 months ago (2015-04-14 18:21:51 UTC) #5
alexraikman
On 2015/04/14 18:21:51, xunjieli wrote: > https://codereview.chromium.org/1085903002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java > File components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java > (right): > > https://codereview.chromium.org/1085903002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java#newcode86 ...
5 years, 8 months ago (2015-04-14 18:35:34 UTC) #6
xunjieli
On 2015/04/14 18:35:34, alexraikman wrote: > On 2015/04/14 18:21:51, xunjieli wrote: > > > https://codereview.chromium.org/1085903002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java ...
5 years, 8 months ago (2015-04-14 18:39:47 UTC) #7
Randy Smith (Not in Mondays)
I'm going to yield to my sense of laziness/overwhelm/gotta-actually-get-some-80%-work-done and hand this off to Elly, ...
5 years, 8 months ago (2015-04-15 17:40:07 UTC) #9
xunjieli
On 2015/04/15 17:40:07, rdsmith wrote: > I'm going to yield to my sense of > ...
5 years, 8 months ago (2015-04-16 15:04:18 UTC) #10
mef
Sorry, I think I forgot to mail my comments. This is really cool! https://codereview.chromium.org/1085903002/diff/40001/components/cronet/android/cronet_url_request_context_adapter.cc File ...
5 years, 8 months ago (2015-04-16 16:04:20 UTC) #11
Elly Fong-Jones
https://codereview.chromium.org/1085903002/diff/40001/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java File components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java (right): https://codereview.chromium.org/1085903002/diff/40001/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java#newcode65 components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java:65: Thread.sleep(5000); it seems like this test is going to ...
5 years, 8 months ago (2015-04-16 18:43:00 UTC) #13
xunjieli
Thanks for the review! PTAL. (Btw Rietveld complained about upload in progress when I was ...
5 years, 8 months ago (2015-04-16 19:36:58 UTC) #14
mef
looks pretty good. I think we need to add a test where server advertises non-existent ...
5 years, 8 months ago (2015-04-20 15:40:54 UTC) #15
xunjieli
Misha, I updated the tests except the part about fetching dictionary explicitly part. How do ...
5 years, 8 months ago (2015-04-21 15:07:02 UTC) #17
xunjieli
On 2015/04/20 15:40:54, mef wrote: > looks pretty good. > > I think we need ...
5 years, 8 months ago (2015-04-27 21:42:08 UTC) #19
mef
Looks pretty good. Do we persist the list of available dictionaries? If yes, do we ...
5 years, 7 months ago (2015-04-28 20:37:11 UTC) #20
xunjieli
>Do we persist the list of available dictionaries? If yes, do we have a test ...
5 years, 7 months ago (2015-04-29 02:05:09 UTC) #21
Randy Smith (Not in Mondays)
On 2015/04/29 02:05:09, xunjieli wrote: > >Do we persist the list of available dictionaries? If ...
5 years, 7 months ago (2015-04-29 15:02:57 UTC) #22
xunjieli
> > Elly's the expert, but we do have persistence implemented (at the SdchOwner > ...
5 years, 7 months ago (2015-04-29 15:12:41 UTC) #23
mef
Thanks a lot for your comments and changes! LGTM mod nit. https://codereview.chromium.org/1085903002/diff/240001/components/cronet/android/test/native_test_server.cc File components/cronet/android/test/native_test_server.cc (right): ...
5 years, 7 months ago (2015-04-29 15:37:29 UTC) #24
xunjieli
Thanks for the review! https://codereview.chromium.org/1085903002/diff/260001/components/cronet/android/test/native_test_server.cc File components/cronet/android/test/native_test_server.cc (right): https://codereview.chromium.org/1085903002/diff/260001/components/cronet/android/test/native_test_server.cc#newcode36 components/cronet/android/test/native_test_server.cc:36: const char echo_body_path[] = "/echo_body"; ...
5 years, 7 months ago (2015-04-29 15:44:23 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085903002/280001
5 years, 7 months ago (2015-04-29 16:36:31 UTC) #28
commit-bot: I haz the power
Committed patchset #13 (id:280001)
5 years, 7 months ago (2015-04-29 17:36:37 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 17:37:32 UTC) #30
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/b8a6d56ffe39823af7b09ce6b816d3cd9fbac2a6
Cr-Commit-Position: refs/heads/master@{#327517}

Powered by Google App Engine
This is Rietveld 408576698