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

Issue 261763002: Rip out the last dart:io dependency from pkg/http. (Closed)

Created:
6 years, 7 months ago by nweiz
Modified:
6 years, 7 months ago
Reviewers:
Bob Nystrom, kasperl
CC:
reviews_dartlang.org, kevmoo
Visibility:
Public.

Description

Rip out the last dart:io dependency from pkg/http. It now loads dart:io via mirrors if it's available. This allows it to be compatible with the browser, so a new library "package:http/browser_client.dart" is added to support that. The use of mirrors was tested to ensure that it doesn't add any additional filesize to dart2js compilations over what would be used if "dart:io" support didn't exist. R=rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=35756

Patch Set 1 #

Total comments: 17

Patch Set 2 : code review #

Patch Set 3 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -848 lines) Patch
M pkg/http/CHANGELOG.md View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/http/README.md View 1 2 chunks +24 lines, -6 lines 0 comments Download
A pkg/http/lib/browser_client.dart View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
M pkg/http/lib/src/byte_stream.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/http/lib/src/client.dart View 2 chunks +11 lines, -4 lines 0 comments Download
A pkg/http/lib/src/io.dart View 1 1 chunk +54 lines, -0 lines 0 comments Download
M pkg/http/lib/src/io_client.dart View 3 chunks +8 lines, -5 lines 0 comments Download
M pkg/http/lib/src/multipart_file.dart View 3 chunks +5 lines, -2 lines 0 comments Download
D pkg/http/test/client_test.dart View 1 chunk +0 lines, -65 lines 0 comments Download
A pkg/http/test/html/client_test.dart View 1 chunk +37 lines, -0 lines 0 comments Download
A pkg/http/test/html/streamed_request_test.dart View 1 chunk +40 lines, -0 lines 0 comments Download
A pkg/http/test/html/utils.dart View 1 chunk +19 lines, -0 lines 0 comments Download
D pkg/http/test/http_test.dart View 1 chunk +0 lines, -334 lines 0 comments Download
A + pkg/http/test/io/client_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A + pkg/http/test/io/http_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A pkg/http/test/io/multipart_test.dart View 1 chunk +43 lines, -0 lines 0 comments Download
A pkg/http/test/io/request_test.dart View 1 chunk +61 lines, -0 lines 0 comments Download
A + pkg/http/test/io/streamed_request_test.dart View 3 chunks +2 lines, -18 lines 0 comments Download
A + pkg/http/test/io/utils.dart View 3 chunks +4 lines, -60 lines 0 comments Download
M pkg/http/test/multipart_test.dart View 2 chunks +0 lines, -66 lines 0 comments Download
M pkg/http/test/request_test.dart View 12 chunks +25 lines, -101 lines 0 comments Download
M pkg/http/test/streamed_request_test.dart View 1 chunk +0 lines, -42 lines 0 comments Download
M pkg/http/test/utils.dart View 2 chunks +44 lines, -133 lines 0 comments Download
M pkg/pkg.status View 1 2 3 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
nweiz
Per Kevin's request, I'll hold off on submitting this until he gives the go-ahead.
6 years, 7 months ago (2014-05-01 00:44:05 UTC) #1
Bob Nystrom
https://codereview.chromium.org/261763002/diff/1/pkg/collection/lib/equality.dart File pkg/collection/lib/equality.dart (right): https://codereview.chromium.org/261763002/diff/1/pkg/collection/lib/equality.dart#newcode18 pkg/collection/lib/equality.dart:18: factory Equality() => const DefaultEquality(); What's up with this? ...
6 years, 7 months ago (2014-05-01 18:30:12 UTC) #2
nweiz
https://codereview.chromium.org/261763002/diff/1/pkg/collection/lib/equality.dart File pkg/collection/lib/equality.dart (right): https://codereview.chromium.org/261763002/diff/1/pkg/collection/lib/equality.dart#newcode18 pkg/collection/lib/equality.dart:18: factory Equality() => const DefaultEquality(); On 2014/05/01 18:30:12, Bob ...
6 years, 7 months ago (2014-05-01 19:34:54 UTC) #3
Bob Nystrom
I'm curious what the right thing to do in the status file is, but otherwise ...
6 years, 7 months ago (2014-05-01 19:52:14 UTC) #4
nweiz
https://codereview.chromium.org/261763002/diff/1/pkg/http/lib/browser_client.dart File pkg/http/lib/browser_client.dart (right): https://codereview.chromium.org/261763002/diff/1/pkg/http/lib/browser_client.dart#newcode79 pkg/http/lib/browser_client.dart:79: new ClientException("XMLHttpRequest error.", request.url), On 2014/05/01 19:52:14, Bob Nystrom ...
6 years, 7 months ago (2014-05-01 20:54:10 UTC) #5
nweiz
The crashing dart2js bug has been fixed. Kevin, am I good to go on submitting ...
6 years, 7 months ago (2014-05-05 18:30:43 UTC) #6
Bob Nystrom
Still LGTM.
6 years, 7 months ago (2014-05-05 19:15:57 UTC) #7
nweiz
Committed patchset #3 manually as r35756 (presubmit successful).
6 years, 7 months ago (2014-05-05 19:36:41 UTC) #8
kasperl
6 years, 7 months ago (2014-05-06 08:53:13 UTC) #9
Message was sent while issue was closed.
We should really, really, really avoid using mirrors for these things. It has
bitten us in the past and it's going to continue biting us in the future.

Powered by Google App Engine
This is Rietveld 408576698