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

Issue 118049: Parsing routines for X-Force-TLS header.... (Closed)

Created:
11 years, 6 months ago by abarth-chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Parsing routines for X-Force-TLS header. R=darin BUG=http://crbug.com/12190 TEST=ForceTLSStateTest.BogusHeaders, ForceTLSStateTest.ValidHeaders Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17377

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -0 lines) Patch
M net/base/force_tls_state.h View 1 2 1 chunk +8 lines, -0 lines 6 comments Download
M net/base/force_tls_state.cc View 1 2 2 chunks +99 lines, -0 lines 2 comments Download
A net/base/force_tls_state_unittest.cc View 2 1 chunk +121 lines, -0 lines 0 comments Download
M net/net.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
abarth-chromium
11 years, 6 months ago (2009-05-30 08:32:00 UTC) #1
darin (slow to review)
Looks good, however... http://codereview.chromium.org/118049/diff/6/8 File net/base/force_tls_state.cc (right): http://codereview.chromium.org/118049/diff/6/8#newcode106 Line 106: static const std::string kIncludeSubdomains = ...
11 years, 6 months ago (2009-05-31 15:05:45 UTC) #2
abarth-chromium
http://codereview.chromium.org/118049/diff/6/8 File net/base/force_tls_state.cc (right): http://codereview.chromium.org/118049/diff/6/8#newcode130 Line 130: // Nomalize header for easier processing. On 2009/05/31 ...
11 years, 6 months ago (2009-05-31 21:07:10 UTC) #3
darin (slow to review)
LGTM Glad that StringTokenizer worked out for you.
11 years, 6 months ago (2009-06-01 14:02:48 UTC) #4
wtc
I only read the .h file to understand the API. A few nits below. Thanks! ...
11 years, 6 months ago (2009-06-01 17:59:18 UTC) #5
abarth-chromium
11 years, 6 months ago (2009-06-02 02:24:05 UTC) #6
http://codereview.chromium.org/118049/diff/16/18
File net/base/force_tls_state.cc (right):

http://codereview.chromium.org/118049/diff/16/18#newcode36
Line 36: // "X-Force-TLS" ":" "max-age" "=" delta-seconds *1INCLUDESUBDOMAINS
On 2009/06/01 17:59:19, wtc wrote:
> OK, so you have the header's definition here.  Would be nice
> to move it (perhaps a version paraphrased in English) to the
> header so that users of this class can understand this method
> without reading the .cc file.

Ok......  The only reason this method is public is to make it unit testable. 
I'd rather wait until this settles down a bit before putting a lot of effort
into documenting it.

http://codereview.chromium.org/118049/diff/16/19
File net/base/force_tls_state.h (right):

http://codereview.chromium.org/118049/diff/16/19#newcode22
Line 22: // fatal, and refuses to load any mixed content.
On 2009/06/01 17:59:19, wtc wrote:
> Nit: refuses => refuse

Fixed.

http://codereview.chromium.org/118049/diff/16/19#newcode38
Line 38: // Returns |true| if value parses as a valid X-Force-TLS header value.
On 2009/06/01 17:59:19, wtc wrote:
> Nit: the first "value" should be quoted with ||.

Fixed.

http://codereview.chromium.org/118049/diff/16/19#newcode39
Line 39: // The value of max-age and and includeSubDomains are returned in
|max_age|
On 2009/06/01 17:59:19, wtc wrote:
> Nit: value => values

Fixed.

> Could you include the definition of the X-Force-TLS header
> in this comment, or cite a reference that defines the header?

The spec is still under development.  This is an experimental implemenation
(behind a command line flag) that's meant to help the spec writers figure out
how the spec should work.  I'll add a link once there is something published to
refer to.

Powered by Google App Engine
This is Rietveld 408576698