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

Issue 12886022: Implement offline mode behind a flag (Closed)

Created:
7 years, 9 months ago by Randy Smith (Not in Mondays)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, gavinp+disk_chromium.org
Visibility:
Public.

Description

Implement offline mode behind a flag. BUG=2204 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195374

Patch Set 1 #

Patch Set 2 : Got rid of debugging, useless flag, and crashing DCHECK. #

Patch Set 3 : Shifted to separate offline manager class. #

Patch Set 4 : Deal with handling validated cache entries as indicative of an operating network. #

Patch Set 5 : Shifted to track (and diff from) https://codereview.chromium.org/12310075/. #

Patch Set 6 : Fix some merge glitches. #

Patch Set 7 : Rebased to r190685 (past landing of https://codereview.chromium.org/12310075). #

Total comments: 10

Patch Set 8 : Added flag to control existence of offline manager. #

Patch Set 9 : Merged to r191150. #

Patch Set 10 : Incorporated Darin's comments. #

Patch Set 11 : Added back in removed whitespace. #

Total comments: 10

Patch Set 12 : Incorporated Ricardo's comments. #

Total comments: 9

Patch Set 13 : Made OfflinePolicy per-tab rather than global. #

Patch Set 14 : Added tests. #

Total comments: 14

Patch Set 15 : Incorporated Ricardo's comments. #

Total comments: 2

Patch Set 16 : Tightened test check. #

Patch Set 17 : Sync'd to r193064. #

Total comments: 20

Patch Set 18 : Incorporated comments. #

Total comments: 8

Patch Set 19 : Incorporated last round of comments. #

Patch Set 20 : Merged to r194985. #

Patch Set 21 : Setup OfflinePolicy for all started requests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -36 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +7 lines, -0 lines 0 comments Download
A content/browser/loader/global_routing_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/loader/offline_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +56 lines, -0 lines 0 comments Download
A content/browser/loader/offline_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +73 lines, -0 lines 0 comments Download
A content/browser/loader/offline_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +96 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +8 lines, -3 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 15 chunks +60 lines, -25 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +44 lines, -2 lines 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +75 lines, -6 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_response_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_response_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Randy Smith (Not in Mondays)
Darin: Could you give me your opinion of the approach taken in this CL? It's ...
7 years, 9 months ago (2013-03-22 21:03:16 UTC) #1
darin (slow to review)
just some initial thoughts... https://codereview.chromium.org/12886022/diff/20001/content/browser/loader/offline_manager.cc File content/browser/loader/offline_manager.cc (right): https://codereview.chromium.org/12886022/diff/20001/content/browser/loader/offline_manager.cc#newcode19 content/browser/loader/offline_manager.cc:19: int child_id, int route_id, const ...
7 years, 9 months ago (2013-03-27 18:33:59 UTC) #2
Randy Smith (Not in Mondays)
Darin: Incorporated your comments. Gonna work on tests next; you're welcome to respond now, or ...
7 years, 8 months ago (2013-04-03 19:20:34 UTC) #3
rvargas (doing something else)
sounds reasonable. https://codereview.chromium.org/12886022/diff/44002/content/browser/loader/offline_policy.h File content/browser/loader/offline_policy.h (right): https://codereview.chromium.org/12886022/diff/44002/content/browser/loader/offline_policy.h#newcode5 content/browser/loader/offline_policy.h:5: // This class controls under what conditions ...
7 years, 8 months ago (2013-04-03 21:48:19 UTC) #4
Randy Smith (Not in Mondays)
Ricardo: One question for you below. Status: Have OfflinePolicy unit tests, haven't written unit tests ...
7 years, 8 months ago (2013-04-04 19:42:49 UTC) #5
rvargas (doing something else)
https://codereview.chromium.org/12886022/diff/44002/content/browser/loader/offline_policy.h File content/browser/loader/offline_policy.h (right): https://codereview.chromium.org/12886022/diff/44002/content/browser/loader/offline_policy.h#newcode33 content/browser/loader/offline_policy.h:33: // Return any additional load flags to be |'d ...
7 years, 8 months ago (2013-04-04 20:13:12 UTC) #6
droger_google
We're looking into the offline mode on iOS, and as Randy suggested, it may be ...
7 years, 8 months ago (2013-04-05 10:55:24 UTC) #7
Randy Smith (Not in Mondays)
(No source changes; just discussion with David.) Darin: Question for you on proper use of ...
7 years, 8 months ago (2013-04-05 17:56:38 UTC) #8
Randy Smith (Not in Mondays)
Made offline policy per-tab rather than global. David, let me know what you think.
7 years, 8 months ago (2013-04-05 19:40:31 UTC) #9
Randy Smith (Not in Mondays)
Ok, I think I'm ready for review. Darin: chrome/*, content/*. Ricardo: net/* Let me know ...
7 years, 8 months ago (2013-04-08 16:43:47 UTC) #10
droger_google
On 2013/04/05 19:40:31, rdsmith wrote: > Made offline policy per-tab rather than global. David, let ...
7 years, 8 months ago (2013-04-08 16:45:46 UTC) #11
droger_google
I am still not happy with webkit/glue/resource_type.h, and I don't know what can be done ...
7 years, 8 months ago (2013-04-08 16:49:29 UTC) #12
blundell
https://codereview.chromium.org/12886022/diff/52001/content/browser/loader/offline_policy.h File content/browser/loader/offline_policy.h (right): https://codereview.chromium.org/12886022/diff/52001/content/browser/loader/offline_policy.h#newcode28 content/browser/loader/offline_policy.h:28: class CONTENT_EXPORT OfflinePolicy { We're currently determining (with darin ...
7 years, 8 months ago (2013-04-08 16:52:04 UTC) #13
blundell
On 2013/04/08 16:49:29, droger_google wrote: > I am still not happy with webkit/glue/resource_type.h, and I ...
7 years, 8 months ago (2013-04-08 16:56:09 UTC) #14
rvargas (doing something else)
net LGTM https://codereview.chromium.org/12886022/diff/73001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/12886022/diff/73001/net/http/http_cache_unittest.cc#newcode506 net/http/http_cache_unittest.cc:506: RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction, SimpleGET_NetworkAccessed_Cache is a superset of ...
7 years, 8 months ago (2013-04-08 19:11:51 UTC) #15
Randy Smith (Not in Mondays)
Incorporated Ricardo's comments. Ricardo, you might or might not want to glance at the changes--they ...
7 years, 8 months ago (2013-04-08 21:03:10 UTC) #16
rvargas (doing something else)
still looks good (PS15) https://codereview.chromium.org/12886022/diff/72003/net/http/http_network_layer_unittest.cc File net/http/http_network_layer_unittest.cc (right): https://codereview.chromium.org/12886022/diff/72003/net/http/http_network_layer_unittest.cc#newcode323 net/http/http_network_layer_unittest.cc:323: ASSERT_EQ(OK, rv); nit: merge this ...
7 years, 8 months ago (2013-04-08 21:54:46 UTC) #17
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/12886022/diff/72003/net/http/http_network_layer_unittest.cc File net/http/http_network_layer_unittest.cc (right): https://codereview.chromium.org/12886022/diff/72003/net/http/http_network_layer_unittest.cc#newcode323 net/http/http_network_layer_unittest.cc:323: ASSERT_EQ(OK, rv); On 2013/04/08 21:54:46, rvargas wrote: > ...
7 years, 8 months ago (2013-04-08 22:00:13 UTC) #18
darin (slow to review)
I just focused on content/ code. https://codereview.chromium.org/12886022/diff/89001/content/browser/loader/offline_policy.cc File content/browser/loader/offline_policy.cc (right): https://codereview.chromium.org/12886022/diff/89001/content/browser/loader/offline_policy.cc#newcode24 content/browser/loader/offline_policy.cc:24: if (!CommandLine::ForCurrentProcess()->HasSwitch( it ...
7 years, 8 months ago (2013-04-11 20:01:22 UTC) #19
darin (slow to review)
It is OK to use webkit/glue/resource_type.h. It is true that it should probably move elsewhere, ...
7 years, 8 months ago (2013-04-11 20:10:38 UTC) #20
Randy Smith (Not in Mondays)
Darin: PTAL. Note on change to use of ResourceType::Type: The original comment came from discussion ...
7 years, 8 months ago (2013-04-12 14:06:44 UTC) #21
darin (slow to review)
I think you made a yak happy. LGTM for content/ bits. https://codereview.chromium.org/12886022/diff/113001/content/browser/loader/global_routing_id.h File content/browser/loader/global_routing_id.h (right): ...
7 years, 8 months ago (2013-04-18 05:03:02 UTC) #22
Randy Smith (Not in Mondays)
Thanks! I'll merge this to LKGR and throw it at the CQ. https://codereview.chromium.org/12886022/diff/113001/content/browser/loader/global_routing_id.h File content/browser/loader/global_routing_id.h ...
7 years, 8 months ago (2013-04-18 20:04:56 UTC) #23
darin (slow to review)
On Thu, Apr 18, 2013 at 1:04 PM, <rdsmith@chromium.org> wrote: > Thanks! I'll merge this ...
7 years, 8 months ago (2013-04-18 22:57:29 UTC) #24
Randy Smith (Not in Mondays)
Ricardo: Could you review the PS20->PS21 change to resource_dispatcher_host_impl.cc? (Darin: I'm happy to take a ...
7 years, 8 months ago (2013-04-19 21:27:32 UTC) #25
rvargas (doing something else)
lgtm
7 years, 8 months ago (2013-04-19 21:38:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12886022/130001
7 years, 8 months ago (2013-04-19 21:41:34 UTC) #27
commit-bot: I haz the power
7 years, 8 months ago (2013-04-20 02:53:10 UTC) #28
Message was sent while issue was closed.
Change committed as 195374

Powered by Google App Engine
This is Rietveld 408576698