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

Issue 12531002: [android_webview] Make intercepted URLRequests have status codes. (Closed)

Created:
7 years, 9 months ago by mkosiba (inactive)
Modified:
7 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[android_webview] Make intercepted URLRequests have status codes. This changes the way AndroidStreamReaderUrlRequestJob handles requests which don't have an InputStream. Rather than immediately failing the Job we pretend to have HTTP response headers that say 404 Not Found and empty contents (much like fetching the data from a real server would). BUG=180542 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187270

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase #

Patch Set 3 : fix clang and findbugs #

Patch Set 4 : #

Patch Set 5 : fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -6 lines) Patch
M android_webview/browser/net/android_stream_reader_url_request_job.h View 1 5 chunks +8 lines, -0 lines 0 comments Download
M android_webview/browser/net/android_stream_reader_url_request_job.cc View 1 8 chunks +74 lines, -4 lines 0 comments Download
M android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc View 1 2 3 4 5 chunks +41 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mkosiba (inactive)
7 years, 9 months ago (2013-03-06 12:15:20 UTC) #1
mnaganov (inactive)
LGTM % nits Do the test failures correlate with your changes? https://codereview.chromium.org/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc File android_webview/browser/net/android_stream_reader_url_request_job.cc (right): ...
7 years, 9 months ago (2013-03-06 13:33:10 UTC) #2
benm (inactive)
https://codereview.chromium.org/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc File android_webview/browser/net/android_stream_reader_url_request_job.cc (right): https://codereview.chromium.org/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc#newcode40 android_webview/browser/net/android_stream_reader_url_request_job.cc:40: const int kHTTPOk = 200; these surely must be ...
7 years, 9 months ago (2013-03-06 17:05:11 UTC) #3
mkosiba (inactive)
https://chromiumcodereview.appspot.com/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc File android_webview/browser/net/android_stream_reader_url_request_job.cc (right): https://chromiumcodereview.appspot.com/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc#newcode40 android_webview/browser/net/android_stream_reader_url_request_job.cc:40: const int kHTTPOk = 200; On 2013/03/06 17:05:11, benm ...
7 years, 9 months ago (2013-03-07 18:52:01 UTC) #4
joth
On 7 March 2013 10:52, <mkosiba@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/12531002/diff/1/** > android_webview/browser/net/**android_stream_reader_url_**request_job.cc<https://chromiumcodereview.appspot.com/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc> > File > ...
7 years, 9 months ago (2013-03-07 21:27:34 UTC) #5
mnaganov (inactive)
https://chromiumcodereview.appspot.com/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc File android_webview/browser/net/android_stream_reader_url_request_job.cc (right): https://chromiumcodereview.appspot.com/12531002/diff/1/android_webview/browser/net/android_stream_reader_url_request_job.cc#newcode248 android_webview/browser/net/android_stream_reader_url_request_job.cc:248: int status_code, On 2013/03/07 18:52:01, Martin Kosiba wrote: > ...
7 years, 9 months ago (2013-03-08 09:15:47 UTC) #6
benm (inactive)
lgtm thanks!
7 years, 9 months ago (2013-03-08 18:12:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/12531002/22001
7 years, 9 months ago (2013-03-08 18:22:23 UTC) #8
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-08 18:31:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/12531002/22001
7 years, 9 months ago (2013-03-11 10:28:14 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-11 10:46:58 UTC) #11
Message was sent while issue was closed.
Change committed as 187270

Powered by Google App Engine
This is Rietveld 408576698