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

Issue 16408: Refactor the two URLRequestContext subclasses in profile.cc into a new shared (Closed)

Created:
12 years ago by Aaron Boodman
Modified:
7 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Refactor the two URLRequestContext subclasses in profile.cc into a new shared ChromeRequestContext class. This will allow us to put browser-specific request context here rather than in URLRequestContext and eliminates a lot of duplicate code. I looked at having two different classes using either inheritance (as proposed by the existing TODO) or composition, but it seems like there isn't enough difference between these two classes to justify it. Removed is_off_the_record() because it wasn't being used anywhere and did a few other minor code cleanup things.

Patch Set 1 #

Patch Set 2 : aa@chromium.org #

Patch Set 3 : Fix line endings in chrome_request_context.h #

Total comments: 17

Patch Set 4 : Rename ChromeRequestContext to ChromeURLRequestContext, various other fixens #

Patch Set 5 : aa@chromium.org #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -285 lines) Patch
M chrome/browser/browser.vcproj View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/browser/net/chrome_url_request_context.h View 4 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/net/chrome_url_request_context.cc View 4 1 chunk +171 lines, -0 lines 0 comments Download
M chrome/browser/profile.h View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 7 chunks +28 lines, -276 lines 0 comments Download
M net/url_request/url_request_context.h View 3 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Aaron Boodman
Feel free to reassign if there is someone better for this review.
12 years ago (2008-12-22 09:01:56 UTC) #1
darin (slow to review)
good idea to put this URLRequestContext subclass in the browser/net directory. some comments... http://codereview.chromium.org/16408/diff/22/24 File ...
12 years ago (2008-12-22 18:05:15 UTC) #2
Aaron Boodman
http://codereview.chromium.org/16408/diff/22/24 File chrome/browser/net/chrome_request_context.cc (right): http://codereview.chromium.org/16408/diff/22/24#newcode1 Line 1: #include "chrome/browser/net/chrome_request_context.h" On 2008/12/22 18:05:15, darin wrote: > ...
12 years ago (2008-12-22 20:47:18 UTC) #3
darin (slow to review)
http://codereview.chromium.org/16408/diff/22/25 File chrome/browser/net/chrome_request_context.h (right): http://codereview.chromium.org/16408/diff/22/25#newcode28 Line 28: static bool IsInstance(URLRequestContext* context); If anyone else in ...
12 years ago (2008-12-22 21:01:32 UTC) #4
eroman
Can you restore a shared ProxyService between off the record contexts and regular? (I have ...
12 years ago (2008-12-22 21:10:10 UTC) #5
Aaron Boodman
Removed IsInstance(), made ProxyService instance shared between normal and OTR, and changed Init() and InitOffTheRecord() ...
12 years ago (2008-12-22 23:19:55 UTC) #6
darin (slow to review)
LGreatTM!
12 years ago (2008-12-23 04:23:24 UTC) #7
eroman
12 years ago (2008-12-23 05:38:32 UTC) #8
LGTM here too!

thanks for making those changes.

Powered by Google App Engine
This is Rietveld 408576698