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

Issue 10836248: Turned job_factory into a pure virtual class (Closed)

Created:
8 years, 4 months ago by shalev
Modified:
8 years, 4 months ago
CC:
chromium-reviews, michaeln, cbentzel+watch_chromium.org, mihaip-chromium-reviews_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, pam+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Turned job_factory into a pure virtual class This makes it possible to create wrappers for job_factory that handle a particular job type, and forward the rest to the old job_factory. TBR=michaeln@chromium.org, brettw@chromium.org, davemoore@chromium.org, kalman@chromium.org, benjhayden@chromium.org, jochen@chromium.org BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153241

Patch Set 1 #

Patch Set 2 : Removed includes #

Total comments: 36

Patch Set 3 : Cleaned up, responded to suggestions #

Total comments: 21

Patch Set 4 : Moved http interceptor to browser level #

Total comments: 4

Patch Set 5 : Fixed nits #

Total comments: 8

Patch Set 6 : Renamed unittest file #

Patch Set 7 : Added missing OVERRIDE #

Patch Set 8 : Fixed Merge #

Patch Set 9 : Latest merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -423 lines) Patch
M chrome/browser/chromeos/gview_request_interceptor_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_protocols_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/net/http_intercept_job_factory.h View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/net/http_intercept_job_factory.cc View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_job_factory.h View 1 2 3 4 5 6 7 4 chunks +22 lines, -22 lines 0 comments Download
M net/url_request/url_request_job_factory.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -117 lines 0 comments Download
A net/url_request/url_request_job_factory_impl.h View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
A + net/url_request/url_request_job_factory_impl.cc View 1 2 3 4 5 6 7 8 chunks +12 lines, -20 lines 0 comments Download
A + net/url_request/url_request_job_factory_impl_unittest.cc View 1 2 3 4 5 6 7 9 chunks +9 lines, -9 lines 0 comments Download
D net/url_request/url_request_job_factory_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -218 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M webkit/appcache/appcache_update_job_unittest.cc View 1 2 3 4 5 6 7 13 chunks +13 lines, -13 lines 0 comments Download
M webkit/fileapi/local_file_system_operation_write_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
shalev
Hi Erik, Could you look at this to let me know if this is what ...
8 years, 4 months ago (2012-08-14 20:21:17 UTC) #1
erikwright (departed)
Looks about right. Suggest responding to my comments before implicating other reviewers. http://codereview.chromium.org/10836248/diff/2001/net/url_request/http_intercept_job_factory.cc File net/url_request/http_intercept_job_factory.cc ...
8 years, 4 months ago (2012-08-16 15:49:01 UTC) #2
shalev
http://codereview.chromium.org/10836248/diff/2001/net/url_request/http_intercept_job_factory.cc File net/url_request/http_intercept_job_factory.cc (right): http://codereview.chromium.org/10836248/diff/2001/net/url_request/http_intercept_job_factory.cc#newcode32 net/url_request/http_intercept_job_factory.cc:32: DCHECK(false); On 2012/08/16 15:49:01, erikwright wrote: > NOTREACHED() Done. ...
8 years, 4 months ago (2012-08-16 18:40:38 UTC) #3
shalev
Hi Will and Matt, This CL turns URLRequestJobFactory into a pure virtual class, and provides ...
8 years, 4 months ago (2012-08-16 18:50:32 UTC) #4
mmenke
This code seems pretty special case to me. Wonder if it really belongs in net/ ...
8 years, 4 months ago (2012-08-16 19:12:11 UTC) #5
erikwright (departed)
On 2012/08/16 19:12:11, Matt Menke wrote: > This code seems pretty special case to me. ...
8 years, 4 months ago (2012-08-16 19:17:03 UTC) #6
mmenke
On 2012/08/16 19:17:03, erikwright wrote: > On 2012/08/16 19:12:11, Matt Menke wrote: > > This ...
8 years, 4 months ago (2012-08-16 19:25:26 UTC) #7
willchan no longer on Chromium
Yeah, I think the HttpInterceptJobFactory should live in chrome/browser/net. And I like to mention that ...
8 years, 4 months ago (2012-08-16 20:35:37 UTC) #8
erikwright (departed)
http://codereview.chromium.org/10836248/diff/11001/net/url_request/url_request_job_factory.h File net/url_request/url_request_job_factory.h (right): http://codereview.chromium.org/10836248/diff/11001/net/url_request/url_request_job_factory.h#newcode82 net/url_request/url_request_job_factory.h:82: virtual URLRequestJob* MaybeCreateJobWithInterceptor( On 2012/08/16 20:35:37, willchan wrote: > ...
8 years, 4 months ago (2012-08-21 17:43:32 UTC) #9
willchan no longer on Chromium
http://codereview.chromium.org/10836248/diff/11001/net/url_request/url_request_job_factory.h File net/url_request/url_request_job_factory.h (right): http://codereview.chromium.org/10836248/diff/11001/net/url_request/url_request_job_factory.h#newcode82 net/url_request/url_request_job_factory.h:82: virtual URLRequestJob* MaybeCreateJobWithInterceptor( Not sure if I understand your ...
8 years, 4 months ago (2012-08-21 17:58:00 UTC) #10
erikwright (departed)
http://codereview.chromium.org/10836248/diff/11001/net/url_request/url_request_job_factory.h File net/url_request/url_request_job_factory.h (right): http://codereview.chromium.org/10836248/diff/11001/net/url_request/url_request_job_factory.h#newcode24 net/url_request/url_request_job_factory.h:24: class NET_EXPORT ProtocolHandler { On 2012/08/16 20:35:37, willchan wrote: ...
8 years, 4 months ago (2012-08-21 18:02:13 UTC) #11
willchan no longer on Chromium
OK, great :) On Tue, Aug 21, 2012 at 11:02 AM, <erikwright@chromium.org> wrote: > > ...
8 years, 4 months ago (2012-08-21 18:04:12 UTC) #12
shalev
http://codereview.chromium.org/10836248/diff/11001/net/url_request/http_intercept_job_factory.cc File net/url_request/http_intercept_job_factory.cc (right): http://codereview.chromium.org/10836248/diff/11001/net/url_request/http_intercept_job_factory.cc#newcode29 net/url_request/http_intercept_job_factory.cc:29: const std::string& scheme, ProtocolHandler* protocol_handler) { On 2012/08/16 19:12:11, ...
8 years, 4 months ago (2012-08-22 19:10:11 UTC) #13
erikwright (departed)
I need to look through in a bit more detail before giving LGTM. http://codereview.chromium.org/10836248/diff/14001/chrome/browser/net/http_intercept_job_factory.h File ...
8 years, 4 months ago (2012-08-22 19:29:37 UTC) #14
shalev
http://codereview.chromium.org/10836248/diff/14001/chrome/browser/net/http_intercept_job_factory.h File chrome/browser/net/http_intercept_job_factory.h (right): http://codereview.chromium.org/10836248/diff/14001/chrome/browser/net/http_intercept_job_factory.h#newcode19 chrome/browser/net/http_intercept_job_factory.h:19: // This class acts as a wrapper for URLRequestJobFactory. ...
8 years, 4 months ago (2012-08-22 20:04:00 UTC) #15
erikwright (departed)
LGTM. http://codereview.chromium.org/10836248/diff/15021/net/url_request/url_request_job_factory_impl.h File net/url_request/url_request_job_factory_impl.h (right): http://codereview.chromium.org/10836248/diff/15021/net/url_request/url_request_job_factory_impl.h#newcode22 net/url_request/url_request_job_factory_impl.h:22: nit: remove vertical whitespace.
8 years, 4 months ago (2012-08-22 20:57:35 UTC) #16
mmenke
LGTM http://codereview.chromium.org/10836248/diff/15021/chrome/browser/net/http_intercept_job_factory.h File chrome/browser/net/http_intercept_job_factory.h (right): http://codereview.chromium.org/10836248/diff/15021/chrome/browser/net/http_intercept_job_factory.h#newcode30 chrome/browser/net/http_intercept_job_factory.h:30: ProtocolHandler* protocol_handler) OVERRIDE; nit: Fix indent. http://codereview.chromium.org/10836248/diff/15021/net/url_request/url_request_job_factory.h File ...
8 years, 4 months ago (2012-08-23 15:00:20 UTC) #17
shalev
http://codereview.chromium.org/10836248/diff/15021/chrome/browser/net/http_intercept_job_factory.h File chrome/browser/net/http_intercept_job_factory.h (right): http://codereview.chromium.org/10836248/diff/15021/chrome/browser/net/http_intercept_job_factory.h#newcode30 chrome/browser/net/http_intercept_job_factory.h:30: ProtocolHandler* protocol_handler) OVERRIDE; On 2012/08/23 15:00:21, Matt Menke wrote: ...
8 years, 4 months ago (2012-08-23 15:15:46 UTC) #18
mmenke
And still LGTM
8 years, 4 months ago (2012-08-24 14:42:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shalev@chromium.org/10836248/19007
8 years, 4 months ago (2012-08-24 15:24:31 UTC) #20
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 17:42:54 UTC) #21
Change committed as 153241

Powered by Google App Engine
This is Rietveld 408576698