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

Issue 5826001: net: fix callbacks in DiskCacheBasedSSLHostInfo (Closed)

Created:
10 years ago by agl
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

net: fix callbacks in DiskCacheBasedSSLHostInfo Previously, DiskCacheBasedSSLHostInfo had a couple of problems: * I had assumed that the disk cache was taking references to the callback. It wasn't. * Even if it were, I was passing pointers into DiskCacheBasedSSLHostInfo which needed to be live for the duration of the callback. This change switches to a custom callback class which doesn't need reference counting and which contains a |user_data| pointer member which remains live for the duration of the callback. BUG=63867 TEST=Navigate to an HTTPS page with Snap Start running and no network connection.

Patch Set 1 #

Total comments: 8

Patch Set 2 : ... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -28 lines) Patch
M net/http/disk_cache_based_ssl_host_info.h View 1 3 chunks +52 lines, -18 lines 1 comment Download
M net/http/disk_cache_based_ssl_host_info.cc View 1 7 chunks +27 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
agl
10 years ago (2010-12-14 19:07:19 UTC) #1
willchan no longer on Chromium
LGTM, although I have to insist you not use void* and casts and public data ...
10 years ago (2010-12-15 00:03:14 UTC) #2
rvargas (doing something else)
http://codereview.chromium.org/5826001/diff/1/net/http/disk_cache_based_ssl_host_info.h File net/http/disk_cache_based_ssl_host_info.h (right): http://codereview.chromium.org/5826001/diff/1/net/http/disk_cache_based_ssl_host_info.h#newcode111 net/http/disk_cache_based_ssl_host_info.h:111: disk_cache::Backend* backend_; Interesting. How do we make sure that ...
10 years ago (2010-12-15 02:00:16 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/5826001/diff/1/net/http/disk_cache_based_ssl_host_info.h File net/http/disk_cache_based_ssl_host_info.h (right): http://codereview.chromium.org/5826001/diff/1/net/http/disk_cache_based_ssl_host_info.h#newcode111 net/http/disk_cache_based_ssl_host_info.h:111: disk_cache::Backend* backend_; On 2010/12/15 02:00:16, rvargas wrote: > Interesting. ...
10 years ago (2010-12-15 02:14:25 UTC) #4
agl
http://codereview.chromium.org/5826001/diff/1/net/http/disk_cache_based_ssl_host_info.cc File net/http/disk_cache_based_ssl_host_info.cc (right): http://codereview.chromium.org/5826001/diff/1/net/http/disk_cache_based_ssl_host_info.cc#newcode97 net/http/disk_cache_based_ssl_host_info.cc:97: switch (state_) { On 2010/12/15 00:03:14, willchan wrote: > ...
10 years ago (2010-12-15 16:28:08 UTC) #5
agl
On Tue, Dec 14, 2010 at 9:00 PM, <rvargas@chromium.org> wrote: > Also, how does one ...
10 years ago (2010-12-15 16:29:58 UTC) #6
rvargas (doing something else)
On 2010/12/15 16:29:58, agl wrote: > On Tue, Dec 14, 2010 at 9:00 PM, <mailto:rvargas@chromium.org> ...
10 years ago (2010-12-15 18:49:26 UTC) #7
willchan no longer on Chromium
10 years ago (2010-12-16 00:12:26 UTC) #8
LGTM

http://codereview.chromium.org/5826001/diff/8001/net/http/disk_cache_based_ss...
File net/http/disk_cache_based_ssl_host_info.h (right):

http://codereview.chromium.org/5826001/diff/8001/net/http/disk_cache_based_ss...
net/http/disk_cache_based_ssl_host_info.h:79: protected:
private

Powered by Google App Engine
This is Rietveld 408576698