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

Issue 40138: Use FilterContext to allow filters to access URLRequestJob data... (Closed)

Created:
11 years, 9 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Use FilterContext to allow filters to access URLRequestJob data r=wtc,darin,huanr Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11248

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 27

Patch Set 14 : '' #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -165 lines) Patch
M base/build/base_unittests.vcproj View 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/automation/url_request_mock_http_job.h View 9 10 11 12 13 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/automation/url_request_mock_http_job.cc View 9 10 11 12 13 2 chunks +9 lines, -2 lines 2 comments Download
M chrome/browser/automation/url_request_slow_download_job.h View 9 10 11 12 13 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/automation/url_request_slow_download_job.cc View 9 10 11 12 13 2 chunks +9 lines, -2 lines 2 comments Download
M chrome/browser/dom_ui/chrome_url_data_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/net/url_request_intercept_job.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/net/url_request_intercept_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/bzip2_filter.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/bzip2_filter.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M net/base/bzip2_filter_unittest.cc View 8 12 chunks +22 lines, -11 lines 0 comments Download
M net/base/filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +57 lines, -16 lines 5 comments Download
M net/base/filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +45 lines, -19 lines 2 comments Download
A net/base/filter_unittest.h View 8 9 10 11 12 13 1 chunk +66 lines, -0 lines 0 comments Download
M net/base/gzip_filter.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M net/base/gzip_filter.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M net/base/gzip_filter_unittest.cc View 8 9 10 11 12 11 chunks +21 lines, -10 lines 0 comments Download
M net/base/sdch_filter.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M net/base/sdch_filter.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -4 lines 0 comments Download
M net/base/sdch_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 21 chunks +62 lines, -42 lines 0 comments Download
M net/url_request/url_request_about_job.h View 1 chunk +4 lines, -2 lines 0 comments Download
M net/url_request/url_request_about_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_file_dir_job.h View 2 chunks +3 lines, -1 line 0 comments Download
M net/url_request/url_request_file_dir_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_file_job.h View 2 chunks +3 lines, -1 line 0 comments Download
M net/url_request/url_request_file_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_ftp_job.h View 4 chunks +12 lines, -8 lines 0 comments Download
M net/url_request/url_request_ftp_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M net/url_request/url_request_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +14 lines, -6 lines 1 comment Download
M net/url_request/url_request_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +22 lines, -13 lines 0 comments Download
M net/url_request/url_request_simple_job.h View 1 chunk +4 lines, -2 lines 0 comments Download
M net/url_request/url_request_simple_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_test_job.h View 3 chunks +4 lines, -2 lines 0 comments Download
M net/url_request/url_request_test_job.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
jar (doing other things)
I have some more cleanup to do, but this CL was getting very large. This ...
11 years, 9 months ago (2009-03-06 04:00:56 UTC) #1
huanr
I gave a try on the naming of filter context class and its methods. Reviewing ...
11 years, 9 months ago (2009-03-06 20:30:09 UTC) #2
wtc
LGTM. Just some minor nits below. http://codereview.chromium.org/40138/diff/1283/156 File chrome/browser/automation/url_request_slow_download_job.cc (right): http://codereview.chromium.org/40138/diff/1283/156#newcode165 Line 165: const_cast<URLRequestSlowDownloadJob*>(this)->GetResponseInfo(&info); Would ...
11 years, 9 months ago (2009-03-07 01:50:14 UTC) #3
jar (doing other things)
Changes made per huanr and wtc suggestions. See comment below. http://codereview.chromium.org/40138/diff/1283/156 File chrome/browser/automation/url_request_slow_download_job.cc (right): http://codereview.chromium.org/40138/diff/1283/156#newcode165 ...
11 years, 9 months ago (2009-03-07 03:55:38 UTC) #4
wtc
LGTM on Patch Set 14. http://codereview.chromium.org/40138/diff/1283/130 File net/url_request/url_request_job.h (right): http://codereview.chromium.org/40138/diff/1283/130#newcode91 Line 91: // Called to ...
11 years, 9 months ago (2009-03-09 17:24:08 UTC) #5
huanr
LGTM http://codereview.chromium.org/40138/diff/191/1320 File chrome/browser/automation/url_request_mock_http_job.cc (right): http://codereview.chromium.org/40138/diff/191/1320#newcode71 Line 71: void URLRequestMockHTTPJob::GetResponseInfoConst(net::HttpResponseInfo* info) const { this line ...
11 years, 9 months ago (2009-03-09 17:50:43 UTC) #6
jar (doing other things)
11 years, 9 months ago (2009-03-09 19:00:41 UTC) #7
Responses to comments by huanr and wtc.

Note that this CL was submitted, so I'll formulate a smaller 
CL containing the commented changes listed below, and send it around for a code
review.

http://codereview.chromium.org/40138/diff/191/1320
File chrome/browser/automation/url_request_mock_http_job.cc (right):

http://codereview.chromium.org/40138/diff/191/1320#newcode71
Line 71: void URLRequestMockHTTPJob::GetResponseInfoConst(net::HttpResponseInfo*
info) const {
On 2009/03/09 17:50:44, huanr wrote:
> this line exceeds 80 characters. same for some other GetResponseInfoConst
> functions

Done.

http://codereview.chromium.org/40138/diff/191/1318
File chrome/browser/automation/url_request_slow_download_job.cc (right):

http://codereview.chromium.org/40138/diff/191/1318#newcode141
Line 141: void
URLRequestSlowDownloadJob::GetResponseInfoConst(net::HttpResponseInfo* info)
const {
On 2009/03/09 17:50:44, huanr wrote:
> 80 characters.

Done.

http://codereview.chromium.org/40138/diff/191/1300
File net/base/filter.cc (right):

http://codereview.chromium.org/40138/diff/191/1300#newcode54
Line 54: // TODO(jar): These settings should go into the derived classes, on an
as-needed basis.
On 2009/03/09 17:50:44, huanr wrote:
> Per our discussion, would be helpful to mention that the settings will be
> consolidated with FilterContext.

Done.

http://codereview.chromium.org/40138/diff/191/1296
File net/base/filter.h (right):

http://codereview.chromium.org/40138/diff/191/1296#newcode44
Line 44: // supplied by the owner of this filter.
On 2009/03/09 17:50:44, huanr wrote:
> Can you also comment on filter chain? If the filter is within the filter
chain,
> is it the contextual information of the owner of the chain, or the upper
filter
> of this filter?

Done.

http://codereview.chromium.org/40138/diff/191/1296#newcode47
Line 47: FilterContext() = 0;
On 2009/03/09 17:24:09, wtc wrote:
> We should not need to declare and define (with = 0) this constructor.

The problem was apparently that my use of
DISALLOW_COPY_AND_ASSIGN(FilterContext) at the end of the class provided *some*
constructor, and that made it a requirement that I have the constructor.  When I
got rid of the tail macro, I was able to get rid of the constructor (I didn't
realize this when I got the compile error when attempting to comply with your
request initially.)

I've gotten rid of both... and it is ok now.

Powered by Google App Engine
This is Rietveld 408576698