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

Issue 1276073004: Offline By Default (Closed)

Created:
5 years, 4 months ago by qsr
Modified:
5 years, 3 months ago
Reviewers:
ppi
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Offline By Default Update the shell to try to run applications from the cache before trying to download those from the web. If an application is thus run from the cache, the shell will asynchronously connect the server to update the application for the next run, if needed. BUG=https://github.com/domokit/mojo/issues/363 R=ppi@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/d15e3f4b8a536b3b5eb3ae506653dc14d1f48d4a

Patch Set 1 #

Patch Set 2 : Add leveldb databse #

Patch Set 3 : Tests #

Patch Set 4 : Add comments #

Patch Set 5 : Misc fixes #

Patch Set 6 : Fix command line. #

Total comments: 12

Patch Set 7 : Ise scoped_ptr for lifetimei ssue #

Patch Set 8 : Use memcpy to solve alignment issue. #

Total comments: 6

Patch Set 9 : Follow review #

Patch Set 10 : More comments #

Patch Set 11 : Rename mojom operations #

Patch Set 12 : Rename MoveIntoDir #

Total comments: 36

Patch Set 13 : Fix dart cide. #

Patch Set 14 : Follow review #

Patch Set 15 : Follow review #

Total comments: 58

Patch Set 16 : Follow review #

Total comments: 4

Patch Set 17 : Follow review #

Patch Set 18 : Add missing explicits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2669 lines, -430 lines) Patch
M .gitignore View 1 2 chunks +2 lines, -0 lines 0 comments Download
M DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
A build/secondary/third_party/leveldatabase/BUILD.gn View 1 1 chunk +325 lines, -0 lines 0 comments Download
M mojo/devtools/common/mojo_test View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +30 lines, -13 lines 0 comments Download
M mojo/tools/data/unittests View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M services/android/java_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M services/dart/content_handler_main.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M services/dart/dart_apptests/lib/src/connect_to_loader_apptests.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M services/url_response_disk_cache/BUILD.gn View 1 3 chunks +51 lines, -1 line 0 comments Download
M services/url_response_disk_cache/url_response_disk_cache_app.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +5 lines, -2 lines 0 comments Download
M services/url_response_disk_cache/url_response_disk_cache_app.cc View 1 2 chunks +6 lines, -7 lines 0 comments Download
M services/url_response_disk_cache/url_response_disk_cache_apptest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +60 lines, -9 lines 0 comments Download
A services/url_response_disk_cache/url_response_disk_cache_db.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +78 lines, -0 lines 0 comments Download
A services/url_response_disk_cache/url_response_disk_cache_db.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +222 lines, -0 lines 0 comments Download
A services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +144 lines, -0 lines 0 comments Download
M services/url_response_disk_cache/url_response_disk_cache_entry.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +11 lines, -8 lines 0 comments Download
M services/url_response_disk_cache/url_response_disk_cache_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +35 lines, -27 lines 0 comments Download
M services/url_response_disk_cache/url_response_disk_cache_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +268 lines, -230 lines 0 comments Download
M shell/android/android_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M shell/application_manager/application_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M shell/application_manager/application_manager.cc View 1 2 chunks +12 lines, -10 lines 0 comments Download
M shell/application_manager/fetcher.h View 1 chunk +2 lines, -2 lines 0 comments Download
M shell/application_manager/fetcher.cc View 2 chunks +26 lines, -2 lines 0 comments Download
M shell/application_manager/local_fetcher.cc View 1 1 chunk +2 lines, -10 lines 0 comments Download
M shell/application_manager/network_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +19 lines, -21 lines 0 comments Download
M shell/application_manager/network_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +193 lines, -78 lines 0 comments Download
M shell/url_response_disk_cache_loader.h View 1 1 chunk +1 line, -1 line 0 comments Download
M shell/url_response_disk_cache_loader.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
A third_party/snappy/BUILD.gn View 1 1 chunk +44 lines, -0 lines 0 comments Download
A third_party/snappy/OWNERS View 1 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/snappy/README.chromium View 1 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/snappy/linux/config.h View 1 1 chunk +135 lines, -0 lines 0 comments Download
A third_party/snappy/linux/snappy-stubs-public.h View 1 1 chunk +98 lines, -0 lines 0 comments Download
A third_party/snappy/mac/config.h View 1 1 chunk +76 lines, -0 lines 0 comments Download
A third_party/snappy/mac/snappy-stubs-public.h View 1 1 chunk +98 lines, -0 lines 0 comments Download
A third_party/snappy/snappy.gyp View 1 1 chunk +99 lines, -0 lines 0 comments Download
A third_party/snappy/snappy.target.mk View 1 1 chunk +210 lines, -0 lines 0 comments Download
A third_party/snappy/snappy_unittest.target.mk View 1 1 chunk +269 lines, -0 lines 0 comments Download
A third_party/snappy/win32/snappy-stubs-public.h View 1 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
ppi
Please find the first batch of comments regarding url_response_disk_cache_db below. Will come back with more ...
5 years, 3 months ago (2015-09-08 11:56:25 UTC) #2
qsr
https://codereview.chromium.org/1276073004/diff/50036/services/url_response_disk_cache/url_response_disk_cache_db.cc File services/url_response_disk_cache/url_response_disk_cache_db.cc (right): https://codereview.chromium.org/1276073004/diff/50036/services/url_response_disk_cache/url_response_disk_cache_db.cc#newcode69 services/url_response_disk_cache/url_response_disk_cache_db.cc:69: bool IsMetaDataKey(const leveldb::Slice& s) { On 2015/09/08 11:56:24, ppi ...
5 years, 3 months ago (2015-09-08 13:35:23 UTC) #3
ppi
https://codereview.chromium.org/1276073004/diff/130001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom File mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom (right): https://codereview.chromium.org/1276073004/diff/130001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom#newcode18 mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom:18: interface URLResponseDiskCache { As discussed offline, it would be ...
5 years, 3 months ago (2015-09-08 13:45:46 UTC) #4
qsr
https://codereview.chromium.org/1276073004/diff/130001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom File mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom (right): https://codereview.chromium.org/1276073004/diff/130001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom#newcode18 mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom:18: interface URLResponseDiskCache { On 2015/09/08 13:45:45, ppi wrote: > ...
5 years, 3 months ago (2015-09-08 13:53:40 UTC) #5
ppi
https://codereview.chromium.org/1276073004/diff/210001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom File mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom (right): https://codereview.chromium.org/1276073004/diff/210001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom#newcode24 mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom:24: // to store content. Please clarify when dir at ...
5 years, 3 months ago (2015-09-08 15:46:27 UTC) #6
qsr
https://codereview.chromium.org/1276073004/diff/210001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom File mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom (right): https://codereview.chromium.org/1276073004/diff/210001/mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom#newcode24 mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom:24: // to store content. On 2015/09/08 15:46:25, ppi wrote: ...
5 years, 3 months ago (2015-09-11 15:47:58 UTC) #7
ppi
https://codereview.chromium.org/1276073004/diff/270001/mojo/devtools/common/mojo_test File mojo/devtools/common/mojo_test (right): https://codereview.chromium.org/1276073004/diff/270001/mojo/devtools/common/mojo_test#newcode70 mojo/devtools/common/mojo_test:70: common_shell_args.append("--args-for=mojo:url_response_disk_cache --clear") good idea! Would you mind extracting the ...
5 years, 3 months ago (2015-09-15 15:21:23 UTC) #8
qsr
https://codereview.chromium.org/1276073004/diff/270001/mojo/devtools/common/mojo_test File mojo/devtools/common/mojo_test (right): https://codereview.chromium.org/1276073004/diff/270001/mojo/devtools/common/mojo_test#newcode70 mojo/devtools/common/mojo_test:70: common_shell_args.append("--args-for=mojo:url_response_disk_cache --clear") On 2015/09/15 15:21:22, ppi wrote: > good ...
5 years, 3 months ago (2015-09-16 11:46:39 UTC) #9
ppi
lgtm % comments https://codereview.chromium.org/1276073004/diff/290001/services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc File services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc (right): https://codereview.chromium.org/1276073004/diff/290001/services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc#newcode83 services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc:83: std::string url3 = "b"; did you ...
5 years, 3 months ago (2015-09-16 12:32:28 UTC) #10
qsr
https://codereview.chromium.org/1276073004/diff/290001/services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc File services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc (right): https://codereview.chromium.org/1276073004/diff/290001/services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc#newcode83 services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc:83: std::string url3 = "b"; On 2015/09/16 12:32:27, ppi wrote: ...
5 years, 3 months ago (2015-09-16 13:50:29 UTC) #11
qsr
https://codereview.chromium.org/1276073004/diff/290001/shell/application_manager/network_fetcher.h File shell/application_manager/network_fetcher.h (right): https://codereview.chromium.org/1276073004/diff/290001/shell/application_manager/network_fetcher.h#newcode51 shell/application_manager/network_fetcher.h:51: void LoadFromCache(bool scheduleUpdate); On 2015/09/16 12:32:27, ppi wrote: > ...
5 years, 3 months ago (2015-09-16 13:52:12 UTC) #12
qsr
5 years, 3 months ago (2015-09-17 09:26:22 UTC) #13
Message was sent while issue was closed.
Committed patchset #18 (id:330001) manually as
d15e3f4b8a536b3b5eb3ae506653dc14d1f48d4a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698