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

Issue 410005: Http cache: First pass to move the HttpCache::Transaction to a sate machine.... (Closed)

Created:
11 years, 1 month ago by rvargas (doing something else)
Modified:
9 years, 6 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Http cache: First pass to move the HttpCache::Transaction to a sate machine. This CL only implements the states that are related to current asynchronous operations. BUG=26729 TEST=current unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33760

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -148 lines) Patch
M net/http/http_cache_transaction.h View 1 2 3 4 5 chunks +49 lines, -29 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 19 chunks +173 lines, -119 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rvargas (doing something else)
I'm trying to ease the review as much as possible so I'm not moving the ...
11 years, 1 month ago (2009-11-20 00:12:41 UTC) #1
eroman
Awesome! As a general comment, I am strongly in favor of making this into a ...
11 years, 1 month ago (2009-11-20 00:43:16 UTC) #2
rvargas (doing something else)
> This setup of DoLoop() is very non-standard compared to our other state > machines. ...
11 years, 1 month ago (2009-11-20 01:44:18 UTC) #3
eroman
> Did I convince you? :) I am not convinced it is worth the inconsistency; ...
11 years, 1 month ago (2009-11-20 02:19:53 UTC) #4
darin (slow to review)
Ditto. Moreover, if we want a different style of DoLoop, then we should apply it ...
11 years, 1 month ago (2009-11-20 05:20:16 UTC) #5
rvargas (doing something else)
I would have volunteered to change the other implementations if consistency is the only issue ...
11 years, 1 month ago (2009-11-20 23:10:44 UTC) #6
wtc
I heard that an optimizing compiler will compile a switch statement into a jump table ...
11 years, 1 month ago (2009-11-20 23:25:20 UTC) #7
rvargas (doing something else)
Yes, the compiler should optimize large switches to tables, but I don't consider performance to ...
11 years, 1 month ago (2009-11-21 00:07:09 UTC) #8
eroman
LGTM http://codereview.chromium.org/410005/diff/3005/3006 File net/http/http_cache_transaction.cc (right): http://codereview.chromium.org/410005/diff/3005/3006#newcode531 Line 531: HandleResult(rv); This is non-standard with respect to ...
11 years, 1 month ago (2009-11-21 02:45:07 UTC) #9
rvargas (doing something else)
Thanks. I hope I addressed all your comments. http://codereview.chromium.org/410005/diff/3005/3006 File net/http/http_cache_transaction.cc (right): http://codereview.chromium.org/410005/diff/3005/3006#newcode531 Line 531: ...
11 years, 1 month ago (2009-11-21 03:27:16 UTC) #10
eroman
ok, lgtm.
11 years, 1 month ago (2009-11-21 04:12:56 UTC) #11
rvargas (doing something else)
11 years ago (2009-12-04 00:17:58 UTC) #12
New version to be commited:
The only real change (other than merging recent changes) is line 1345 of the cc
file, where I'm removing !callback_ from the conditions to avoid restarting the
request, because the SM is able to handle that case.

On 2009/11/21 04:12:56, eroman wrote:
> ok, lgtm.

Powered by Google App Engine
This is Rietveld 408576698