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

Issue 10440119: Introduce a delegate to avoid hardcoding "chrome-extension" in net/. (Closed)

Created:
8 years, 6 months ago by Jói
Modified:
8 years, 6 months ago
Reviewers:
eroman, brettw
CC:
chromium-reviews, MAD, jar (doing other things), jochen+watch-content_chromium.org, stevenjb+watch_chromium.org, jam, cbentzel+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, Ilya Sherman, davemoore+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Introduce a delegate to avoid hardcoding "chrome-extension" in net/. Also, deal with a couple of TODOs in the throttling code, and remove metrics we no longer need since we are no longer running field trials for this code. BUG=119760 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141000

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Remove invalid dcheck. #

Patch Set 5 : Remove part of unit test using removed histograms. #

Patch Set 6 : Pure merge to LKGR #

Total comments: 6

Patch Set 7 : Pure merge to LKGR #

Patch Set 8 : Respond to review requests. #

Total comments: 12

Patch Set 9 : Respond to review comments. #

Total comments: 2

Patch Set 10 : Address review nit and merge to LKGR for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -129 lines) Patch
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -0 lines 0 comments Download
M content/shell/shell_network_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_network_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M net/base/network_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M net/base/network_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M net/proxy/network_delegate_error_observer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -12 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M net/url_request/url_request_throttler_entry.h View 1 2 3 4 5 6 7 8 3 chunks +1 line, -14 lines 0 comments Download
M net/url_request/url_request_throttler_entry.cc View 1 2 3 4 5 6 7 8 6 chunks +12 lines, -42 lines 0 comments Download
M net/url_request/url_request_throttler_entry_interface.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -4 lines 0 comments Download
M net/url_request/url_request_throttler_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_request_throttler_manager.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -13 lines 0 comments Download
M net/url_request/url_request_throttler_simulation_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +12 lines, -11 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +41 lines, -22 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Jói
8 years, 6 months ago (2012-05-31 20:54:54 UTC) #1
Jói
eroman: Friendly ping :)
8 years, 6 months ago (2012-06-04 10:46:00 UTC) #2
eroman
thx for the reminder, had forgotten On Mon, Jun 4, 2012 at 3:46 AM, <joi@chromium.org> ...
8 years, 6 months ago (2012-06-04 18:54:50 UTC) #3
eroman
@willchan: Do you envision NetworkDelegate as a dumping grounds for all of the client --> ...
8 years, 6 months ago (2012-06-05 05:30:24 UTC) #4
eroman
Actually add willchan this time ;) Will, I have a small question for you in ...
8 years, 6 months ago (2012-06-05 05:30:52 UTC) #5
willchan no longer on Chromium
On 2012/06/05 05:30:52, eroman wrote: > Actually add willchan this time ;) > Will, I ...
8 years, 6 months ago (2012-06-05 05:43:16 UTC) #6
Jói
eroman: Please take another look. I switched to using NetworkDelegate. brettw: OWNERS approval for trivial ...
8 years, 6 months ago (2012-06-05 16:39:13 UTC) #7
brettw
lgtm
8 years, 6 months ago (2012-06-05 19:37:34 UTC) #8
eroman
http://codereview.chromium.org/10440119/diff/35002/net/base/network_delegate.h File net/base/network_delegate.h (right): http://codereview.chromium.org/10440119/diff/35002/net/base/network_delegate.h#newcode209 net/base/network_delegate.h:209: virtual bool OnCanRejectRequest(const URLRequest& request) const = 0; nit: ...
8 years, 6 months ago (2012-06-06 04:52:11 UTC) #9
Jói
Please take another look. Cheers, Jói http://codereview.chromium.org/10440119/diff/35002/net/base/network_delegate.h File net/base/network_delegate.h (right): http://codereview.chromium.org/10440119/diff/35002/net/base/network_delegate.h#newcode209 net/base/network_delegate.h:209: virtual bool OnCanRejectRequest(const ...
8 years, 6 months ago (2012-06-06 13:38:54 UTC) #10
eroman
lgtm http://codereview.chromium.org/10440119/diff/30011/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): http://codereview.chromium.org/10440119/diff/30011/chrome/browser/net/chrome_network_delegate.cc#newcode369 chrome/browser/net/chrome_network_delegate.cc:369: return request.first_party_for_cookies().scheme() != nit: our style says to ...
8 years, 6 months ago (2012-06-07 02:20:10 UTC) #11
Jói
Thanks, committing. http://codereview.chromium.org/10440119/diff/30011/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): http://codereview.chromium.org/10440119/diff/30011/chrome/browser/net/chrome_network_delegate.cc#newcode369 chrome/browser/net/chrome_network_delegate.cc:369: return request.first_party_for_cookies().scheme() != On 2012/06/07 02:20:10, eroman ...
8 years, 6 months ago (2012-06-07 11:00:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/10440119/28019
8 years, 6 months ago (2012-06-07 11:00:24 UTC) #13
commit-bot: I haz the power
8 years, 6 months ago (2012-06-07 13:21:17 UTC) #14
Change committed as 141000

Powered by Google App Engine
This is Rietveld 408576698