Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(44)

Issue 45210043: Refactoring IO classes, async & offline storage (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by pajamallama
Modified:
10 years, 3 months ago
Reviewers:
tapted
CC:
chrome-apps-internsyd_google.com
Base URL:
https://github.com/tapted/bleeding_edge.git@tavern1
Visibility:
Public.

Description

Refactoring IO classes, async & offline storage Created classes File, Directory and FileSystem in wrap/io_wrap.dart which mirror chrome.FileEntry, chrome.DirectoryEntry and chrome.FileSystem. Using io.dart in Dartium should be simple as only io_wrap.dart would need to be changed. Created a PathRep class which is basically a String with some helper methods from the path library. This class has been propogated throughout the existing code replacing many Strings. Rewrote io.dart to supply asynchronous functions. This change propogated out to entrypoint.dart and source/hosted.dart. Renamed wrap/blawrap.dart to wrap/bla_wrap.dart. I wouldn't mind reducing it to simply wrap/bla.dart... Stored the working directory in offline storage, so that now the user is only prompted for a directory on the first opening of the app. Symlink code was commented out as I don't know how to approach them at all. R=tapted@chromium.org Committed: https://github.com/tapted/bleeding_edge/commit/65d21e3

Patch Set 1 : #

Total comments: 102

Patch Set 2 : Style fixes. #

Patch Set 3 : Fixing bugs, adding comments. #

Total comments: 24

Patch Set 4 : Fixing bugs introduced by refactor. #

Total comments: 28

Patch Set 5 : Fixing final nits. #

Total comments: 3

Patch Set 6 : Rebase #

Patch Set 7 : similarity 100 #

Patch Set 8 : eww #

Unified diffs Side-by-side diffs Delta from patch set Stats (+825 lines, -612 lines) Patch
M dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart View 1 2 3 4 5 2 chunks +16 lines, -10 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/dart.dart View 1 chunk +1 line, -4 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart View 1 2 3 4 9 chunks +118 lines, -94 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/http.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/io.dart View 1 2 3 4 8 chunks +108 lines, -213 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/lock_file.dart View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/log.dart View 1 chunk +0 lines, -1 line 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/oauth2.dart View 1 chunk +1 line, -2 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/package.dart View 1 2 3 chunks +20 lines, -15 lines 0 comments Download
A dart/sdk/lib/_internal/pub/lib/src/path_rep.dart View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/pubspec.dart View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/sdk.dart View 1 2 2 chunks +2 lines, -16 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart View 1 2 3 4 5 4 chunks +5 lines, -15 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/source.dart View 1 2 3 4 5 10 chunks +49 lines, -34 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart View 1 2 3 4 5 8 chunks +31 lines, -39 lines 0 comments Download
D dart/sdk/lib/_internal/pub/lib/src/system_cache.dart View 1 chunk +0 lines, -107 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/utils.dart View 1 chunk +1 line, -2 lines 0 comments Download
D dart/sdk/lib/_internal/pub/lib/src/wrap/analyzerwrap.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + dart/sdk/lib/_internal/pub/lib/src/wrap/barback_wrap.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
D dart/sdk/lib/_internal/pub/lib/src/wrap/barbackwrap.dart View 1 chunk +0 lines, -9 lines 0 comments Download
A + dart/sdk/lib/_internal/pub/lib/src/wrap/compiler_wrap.dart View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
D dart/sdk/lib/_internal/pub/lib/src/wrap/filenameswrap.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A dart/sdk/lib/_internal/pub/lib/src/wrap/http_wrap.dart View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart View 1 2 3 4 5 7 1 chunk +324 lines, -0 lines 0 comments Download
A + dart/sdk/lib/_internal/pub/lib/src/wrap/oauth2_wrap.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
D dart/sdk/lib/_internal/pub/lib/src/wrap/oauth2wrap.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A dart/sdk/lib/_internal/pub/lib/src/wrap/sdk_wrap.dart View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
D dart/sdk/lib/_internal/pub/lib/src/wrap/source_file_providerwrap.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + dart/sdk/lib/_internal/pub/lib/src/wrap/system_cache_wrap.dart View 1 2 3 4 5 3 chunks +21 lines, -43 lines 0 comments Download
M dart/sdk/lib/_internal/pub/manifest.json View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 11
pajamallama
Merry Christmas haha
10 years, 4 months ago (2013-12-24 05:22:50 UTC) #1
tapted
Awesome work! On 2013/12/24 05:22:50, pajamallama wrote: > Renamed wrap/blawrap.dart to wrap/bla_wrap.dart. I wouldn't > ...
10 years, 4 months ago (2013-12-28 05:42:14 UTC) #2
tapted
https://codereview.appspot.com/45210043/diff/20001/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart File dart/sdk/lib/_internal/pub/lib/src/path_rep.dart (right): https://codereview.appspot.com/45210043/diff/20001/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart#newcode15 dart/sdk/lib/_internal/pub/lib/src/path_rep.dart:15: bool get inPackages => path.split(_filename).contains("packages"); On 2013/12/28 05:42:14, tapted ...
10 years, 4 months ago (2013-12-30 04:41:26 UTC) #3
pajamallama
Style fixes. https://codereview.appspot.com/45210043/diff/20001/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart File dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.appspot.com/45210043/diff/20001/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode135 dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:135: useLatest: useLatest, upgradeAll: upgradeAll)) On 2013/12/28 05:42:14, ...
10 years, 4 months ago (2013-12-30 06:35:22 UTC) #4
pajamallama
Fixed some bugs, added some comments. Also uncommented sections and re-added deleted functions. Still have ...
10 years, 3 months ago (2014-01-02 05:03:38 UTC) #5
tapted
There's a lot of added functionality from the first patchset (maybe ~100 lines). We don't ...
10 years, 3 months ago (2014-01-02 12:06:42 UTC) #6
pajamallama
https://codereview.appspot.com/45210043/diff/20001/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart File dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.appspot.com/45210043/diff/20001/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode287 dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:287: void _linkSelf() { On 2013/12/28 05:42:14, tapted wrote: > ...
10 years, 3 months ago (2014-01-04 03:05:24 UTC) #7
tapted
lgtm with a few nits fixed. https://codereview.appspot.com/45210043/diff/220001/dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart File dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart (right): https://codereview.appspot.com/45210043/diff/220001/dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart#newcode9 dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart:9: import '../io.dart' show ...
10 years, 3 months ago (2014-01-04 11:24:21 UTC) #8
pajamallama
Finished. https://codereview.appspot.com/45210043/diff/220001/dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart File dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart (right): https://codereview.appspot.com/45210043/diff/220001/dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart#newcode9 dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart:9: import '../io.dart' show FileSystem; On 2014/01/04 11:24:21, tapted ...
10 years, 3 months ago (2014-01-05 23:05:34 UTC) #9
tapted
https://codereview.appspot.com/45210043/diff/240001/dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart File dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart (right): https://codereview.appspot.com/45210043/diff/240001/dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart#newcode6 dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart:6: import 'dart:html' show Blob; nit: sort https://codereview.appspot.com/45210043/diff/240001/dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart#newcode80 dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart:80: return ...
10 years, 3 months ago (2014-01-05 23:19:10 UTC) #10
pajamallama
10 years, 3 months ago (2014-01-06 00:54:13 UTC) #11
Message was sent while issue was closed.
Committed patchset #8 manually as r65d21e3.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b