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

Issue 10541046: Adds NetworkDelegate::NotifyBeforeSocketStreamConnect() (Closed)

Created:
8 years, 6 months ago by bashi
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, cbentzel+watch_chromium.org, darin-cc_chromium.org, jochen+watch-content_chromium.org, Yuta Kitamura
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adds NetworkDelegate::NotifyBeforeSocketStreamConnect() This function will be called before an WebSocket tries to connect. This function can do extra work such as policy checks to prevent the connect. ChromeNetworkDelegate implements the function to check URL blacklist. BUG=131046 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141816

Patch Set 1 #

Patch Set 2 : Fix compile error #

Total comments: 4

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -3 lines) Patch
M chrome/browser/net/chrome_network_delegate.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/policy/url_blacklist_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager_unittest.cc View 1 2 3 chunks +18 lines, -1 line 0 comments Download
M content/shell/shell_network_delegate.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/shell_network_delegate.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M net/base/network_delegate.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M net/base/network_delegate.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M net/proxy/network_delegate_error_observer_unittest.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket_stream/socket_stream.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 chunks +32 lines, -1 line 0 comments Download
M net/socket_stream/socket_stream_unittest.cc View 2 chunks +48 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
bashi
Hi willchan, wtc, toyoshim, Could you take a look?
8 years, 6 months ago (2012-06-07 05:00:07 UTC) #1
willchan no longer on Chromium
+joaodasilva for policy/ We probably should update the URLBlacklistManager tests to make sure it works ...
8 years, 6 months ago (2012-06-07 23:07:07 UTC) #2
Joao da Silva
policy/ lgtm. We're currently working on improving the end-to-end test coverage of the enterprise code. ...
8 years, 6 months ago (2012-06-07 23:18:33 UTC) #3
bashi
Thank you for review! I rebased the CL and addressed comments. I also updated URLBlacklistManagerTest. ...
8 years, 6 months ago (2012-06-08 02:48:33 UTC) #4
willchan no longer on Chromium
lgtm
8 years, 6 months ago (2012-06-08 23:34:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/10541046/10002
8 years, 6 months ago (2012-06-10 23:04:34 UTC) #6
commit-bot: I haz the power
Presubmit check for 10541046-10002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-10 23:04:39 UTC) #7
bashi
Adding tony@ and avi@ for webkit/ and content/
8 years, 6 months ago (2012-06-10 23:08:29 UTC) #8
tony
webkit LGTM
8 years, 6 months ago (2012-06-11 16:59:21 UTC) #9
bashi
Adding folks for content/ review.
8 years, 6 months ago (2012-06-12 23:04:13 UTC) #10
darin (slow to review)
LGTM
8 years, 6 months ago (2012-06-12 23:45:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/10541046/10002
8 years, 6 months ago (2012-06-12 23:49:57 UTC) #12
commit-bot: I haz the power
Change committed as 141816
8 years, 6 months ago (2012-06-13 00:54:04 UTC) #13
brettw
8 years, 6 months ago (2012-06-13 02:12:16 UTC) #14
Please only add one OWNER to avoid sending unnecessary review requests.

Powered by Google App Engine
This is Rietveld 408576698