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

Issue 7827033: Introduce net::HttpServerPropertiesManager to manage server-specific properties. (Closed)

Created:
9 years, 3 months ago by ramant (doing other things)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, idana, Raghu Simha, brettw-cc_chromium.org, achuith+watch_chromium.org, ncarter (slow), rginda+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Introduce net::HttpServerPropertiesManager to manage server-specific properties. Currently the only property we manage is whether or not a server supports SPDY, as indicated by NPN. Also introduce a chrome/ implementation of HttpServerPropertiesManager that persists the information to Prefererences. When we get a SpdySession for a SPDY server, record that that server supports SPDY in HttpServerPropertiesManager. When preconnecting, if we know that the server supports SPDY, only preconnect 1 socket. R=willchan BUG=66472 TEST=browser ui and unit tests,network unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104666

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 6

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Patch Set 24 : '' #

Total comments: 22

Patch Set 25 : '' #

Patch Set 26 : '' #

Patch Set 27 : '' #

Patch Set 28 : '' #

Total comments: 20

Patch Set 29 : '' #

Patch Set 30 : '' #

Patch Set 31 : '' #

Patch Set 32 : '' #

Patch Set 33 : '' #

Patch Set 34 : '' #

Patch Set 35 : '' #

Patch Set 36 : '' #

Patch Set 37 : '' #

Patch Set 38 : '' #

Patch Set 39 : '' #

Total comments: 28

Patch Set 40 : '' #

Total comments: 2

Patch Set 41 : '' #

Total comments: 10

Patch Set 42 : '' #

Patch Set 43 : '' #

Total comments: 1

Patch Set 44 : '' #

Patch Set 45 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1166 lines, -24 lines) Patch
M chrome/browser/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/net/http_server_properties_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 1 chunk +154 lines, -0 lines 0 comments Download
A chrome/browser/net/http_server_properties_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +220 lines, -0 lines 0 comments Download
A chrome/browser/net/http_server_properties_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 1 chunk +276 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 4 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 10 chunks +24 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +2 lines, -1 line 0 comments Download
M jingle/notifier/base/proxy_resolving_client_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_cache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +2 lines, -0 lines 0 comments Download
M net/http/http_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 4 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_network_session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 5 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
A net/http/http_server_properties.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +42 lines, -0 lines 0 comments Download
A net/http/http_server_properties_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 1 chunk +66 lines, -0 lines 0 comments Download
A net/http/http_server_properties_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +93 lines, -0 lines 0 comments Download
A net/http/http_server_properties_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 1 chunk +186 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 3 chunks +17 lines, -1 line 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +4 lines, -0 lines 0 comments Download
M net/spdy/spdy_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 3 chunks +10 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_storage.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 3 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +7 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
willchan no longer on Chromium
http://codereview.chromium.org/7827033/diff/2027/net/spdy/spdy_config_service.h File net/spdy/spdy_config_service.h (right): http://codereview.chromium.org/7827033/diff/2027/net/spdy/spdy_config_service.h#newcode28 net/spdy/spdy_config_service.h:28: : public base::RefCountedThreadSafe<SpdyConfigService> { SpdyConfigService should not be refcounted. ...
9 years, 3 months ago (2011-09-02 22:31:13 UTC) #1
ramant (doing other things)
Hi willchan, Made the changes we had talked about. Would appreciate if you could look ...
9 years, 3 months ago (2011-09-14 20:15:57 UTC) #2
willchan no longer on Chromium
Sorry I'm slow on this. Been busy with the code yellow stuff. I'll try to ...
9 years, 3 months ago (2011-09-14 20:16:47 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/7827033/diff/25001/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): http://codereview.chromium.org/7827033/diff/25001/chrome/browser/net/http_server_properties_manager.cc#newcode60 chrome/browser/net/http_server_properties_manager.cc:60: ALLOW_THIS_IN_INITIALIZER_LIST(io_weak_ptr_factory_(this)) { For the io_method_factory_ and io_weak_ptr_factory_, you need ...
9 years, 2 months ago (2011-10-02 18:33:13 UTC) #4
ramant (doing other things)
Hi willchan, Made all the changes you had suggested. Could you please take another high ...
9 years, 2 months ago (2011-10-04 05:23:24 UTC) #5
willchan no longer on Chromium
http://codereview.chromium.org/7827033/diff/38003/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): http://codereview.chromium.org/7827033/diff/38003/chrome/browser/net/http_server_properties_manager.cc#newcode63 chrome/browser/net/http_server_properties_manager.cc:63: http_server_properties_impl_.reset(new net::HttpServerPropertiesImpl()); How about moving this into InitializeOnIOThread()? Then ...
9 years, 2 months ago (2011-10-04 05:55:02 UTC) #6
willchan no longer on Chromium
http://codereview.chromium.org/7827033/diff/38003/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): http://codereview.chromium.org/7827033/diff/38003/chrome/browser/net/http_server_properties_manager.cc#newcode185 chrome/browser/net/http_server_properties_manager.cc:185: base::Unretained(this), spdy_server_list)); On 2011/10/04 05:55:02, willchan wrote: > You're ...
9 years, 2 months ago (2011-10-04 06:12:20 UTC) #7
ramant (doing other things)
Hi willchan, Made all the changes we had talked about. Would appreciate if you could ...
9 years, 2 months ago (2011-10-06 06:17:52 UTC) #8
willchan no longer on Chromium
http://codereview.chromium.org/7827033/diff/71002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/7827033/diff/71002/chrome/app/policy/policy_templates.json#newcode245 chrome/app/policy/policy_templates.json:245: 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], Is this right? I actually don't ...
9 years, 2 months ago (2011-10-06 22:13:22 UTC) #9
ramant (doing other things)
Hi willchan, Made all the changes you had suggested. Removed spdy_servers prefs from policy. Moved ...
9 years, 2 months ago (2011-10-07 01:40:19 UTC) #10
willchan no longer on Chromium
http://codereview.chromium.org/7827033/diff/72001/chrome/browser/net/http_server_properties_manager.h File chrome/browser/net/http_server_properties_manager.h (right): http://codereview.chromium.org/7827033/diff/72001/chrome/browser/net/http_server_properties_manager.h#newcode90 chrome/browser/net/http_server_properties_manager.h:90: virtual void PostUpdateTaskOnUI(Task* task); // Virtual for testing. Do ...
9 years, 2 months ago (2011-10-07 01:45:15 UTC) #11
ramant (doing other things)
Hi willchan, Thanks for catching the Post* methods being protected. Made them private. -raman http://codereview.chromium.org/7827033/diff/72001/chrome/browser/net/http_server_properties_manager.h ...
9 years, 2 months ago (2011-10-07 02:01:12 UTC) #12
willchan no longer on Chromium
LGTM, things look great! I love the gmock tests you added, well done. http://codereview.chromium.org/7827033/diff/72007/chrome/browser/net/http_server_properties_manager_unittest.cc File ...
9 years, 2 months ago (2011-10-07 19:11:45 UTC) #13
willchan no longer on Chromium
Last nits. But I just see now that there's a leak on unit_tests, lemme check ...
9 years, 2 months ago (2011-10-07 19:15:46 UTC) #14
willchan no longer on Chromium
http://codereview.chromium.org/7827033/diff/72007/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): http://codereview.chromium.org/7827033/diff/72007/chrome/browser/net/http_server_properties_manager.cc#newcode194 chrome/browser/net/http_server_properties_manager.cc:194: // Update the preferences on the UI thread. Ah ...
9 years, 2 months ago (2011-10-07 19:17:46 UTC) #15
willchan no longer on Chromium
I've fixed your changelist description. Everything LGTM and valgrind seems to pass, so it seems ...
9 years, 2 months ago (2011-10-08 20:22:37 UTC) #16
ramant (doing other things)
Made the changes you suggested willchan, raman http://codereview.chromium.org/7827033/diff/72007/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): http://codereview.chromium.org/7827033/diff/72007/chrome/browser/net/http_server_properties_manager.cc#newcode194 chrome/browser/net/http_server_properties_manager.cc:194: // Update ...
9 years, 2 months ago (2011-10-08 21:51:40 UTC) #17
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/7827033/88010
9 years, 2 months ago (2011-10-09 00:31:21 UTC) #18
commit-bot: I haz the power
9 years, 2 months ago (2011-10-09 02:01:57 UTC) #19
Change committed as 104666

Powered by Google App Engine
This is Rietveld 408576698