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

Issue 5961005: Create a URLRequestContext for PAC fetching. (Closed)

Created:
10 years ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr., Alexander Potapenko
Visibility:
Public.

Description

Create a URLRequestContext for PAC fetching. Originally I was going to create a single "system" URLRequestContext. I realized that was wrong, I need one for proxy script fetching that uses a direct ProxyService. This way, we don't have the circular dependencies for URLRequestContext(A)=>ProxyService=>ProxyScriptFetcherImpl=>URLRequestContext(A). Instead, we have URLRequestContext(A)=>ProxyService=>ProxyScriptFetcherImpl=>URLRequestContext(special one for proxy). This also exposes some setters in URLRequestContext that were in ChromeURLRequestContext. I guess this makes URLRequestContext a bit more "dangerous" since it could be mutated during runtime, but really we should probably pass around a const URLRequestContext within the network stack. I've filed http://crbug.com/67597 to track this. BUG=67232 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70116

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : More merging. #

Patch Set 4 : Hopefully the last merge error. #

Patch Set 5 : Hopefully this fixes all tests, except maybe the windows chrome_frame_tests :( #

Patch Set 6 : Remove need for IOThread in unit_tests. Woot! #

Total comments: 21

Patch Set 7 : Address comments. #

Total comments: 10

Patch Set 8 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -131 lines) Patch
M chrome/browser/dom_ui/net_internals_ui.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 5 chunks +7 lines, -14 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 5 chunks +45 lines, -50 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 2 chunks +0 lines, -24 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 6 4 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/net/connection_tester.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 8 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/net/connection_tester_unittest.cc View 1 2 3 4 5 6 7 4 chunks +58 lines, -15 lines 0 comments Download
M net/proxy/proxy_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M net/url_request/url_request_context.h View 1 2 4 chunks +35 lines, -6 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
willchan no longer on Chromium
10 years ago (2010-12-21 23:03:48 UTC) #1
eroman
The general approach looks reasonable. Note that you will also want to update the load ...
10 years ago (2010-12-22 01:27:56 UTC) #2
willchan no longer on Chromium
http://codereview.chromium.org/5961005/diff/12001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/5961005/diff/12001/chrome/browser/io_thread.cc#newcode179 chrome/browser/io_thread.cc:179: void InitializeProxyRequestContext(IOThread::Globals* globals, On 2010/12/22 01:27:56, eroman wrote: > ...
10 years ago (2010-12-22 02:35:07 UTC) #3
eroman
lgtm http://codereview.chromium.org/5961005/diff/19001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/5961005/diff/19001/chrome/browser/io_thread.cc#newcode40 chrome/browser/io_thread.cc:40: #include "net/http/http_cache.h" Is this header still needed? http://codereview.chromium.org/5961005/diff/19001/chrome/browser/io_thread.cc#newcode202 ...
10 years ago (2010-12-23 01:40:59 UTC) #4
willchan no longer on Chromium
http://codereview.chromium.org/5961005/diff/19001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/5961005/diff/19001/chrome/browser/io_thread.cc#newcode40 chrome/browser/io_thread.cc:40: #include "net/http/http_cache.h" On 2010/12/23 01:40:59, eroman wrote: > Is ...
10 years ago (2010-12-23 23:51:58 UTC) #5
Timur Iskhodzhanov
Looks like this change has introduced a few memory leaks which made almost all the ...
10 years ago (2010-12-24 06:49:07 UTC) #6
willchan no longer on Chromium
10 years ago (2010-12-24 07:22:39 UTC) #7
Oops, easy fix.  I'll patch it tonight.  Sorry!

On Thu, Dec 23, 2010 at 10:49 PM, <timurrrr@chromium.org> wrote:

> Looks like this change has introduced a few memory leaks which made almost
> all
> the Valgrind bots red.
> We (me and glider) will need to file some suppressionz when at the office.
> Please watch the memory waterfall next time after commiting
>
>
> http://codereview.chromium.org/5961005/
>

Powered by Google App Engine
This is Rietveld 408576698