|
[android_webview] Don't block the IO thread when reading from an InputStream.
This breaks up the functionality in the AndroidStreamReader..Job into
three separate classes, adds native unittests and makes the Job read
the InputStream on a background thread.
This change adds a separate unittestjava folder because the code under
javatests can't be compiled to be a part of a native unittest APK due to
resource dependencies.
TEST=AndroidWebviewTests,android_webview_unittests
BUG=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=169274
Total comments: 1
Total comments: 24
Total comments: 3
Total comments: 8
Total comments: 31
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1298 lines, -380 lines) |
Patch |
 |
M |
android_webview/android_webview.gyp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/android_webview_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+33 lines, -1 line |
0 comments
|
Download
|
 |
A |
android_webview/browser/input_stream.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
android_webview/browser/net/android_stream_reader_url_request_job.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+27 lines, -12 lines |
0 comments
|
Download
|
 |
A |
android_webview/browser/net/android_stream_reader_url_request_job.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+189 lines, -0 lines |
0 comments
|
Download
|
 |
A |
android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+311 lines, -0 lines |
0 comments
|
Download
|
 |
A |
android_webview/browser/net/input_stream_reader.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
android_webview/browser/net/input_stream_reader.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
 |
A |
android_webview/browser/net/input_stream_reader_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+172 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/android_protocol_handler.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/android_stream_reader_url_request_job.h
|
View
|
1
2
|
1 chunk |
+0 lines, -85 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/android_stream_reader_url_request_job.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -240 lines |
0 comments
|
Download
|
 |
D |
android_webview/native/android_stream_reader_url_request_job_unittests.cc
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/android_webview_jni_registrar.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
A |
android_webview/native/input_stream_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
android_webview/native/input_stream_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+121 lines, -0 lines |
0 comments
|
Download
|
 |
A |
android_webview/native/input_stream_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+100 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/intercepted_request_data_impl.h
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/intercepted_request_data_impl.cc
|
View
|
1
2
|
3 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/webview_native.gyp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java
|
View
|
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|