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

Side by Side Diff: chrome/browser/net/http_server_properties_manager.h

Issue 188663002: Revert of HttpServerProperties - Implement MRU for AlternateProtocolMap. Persist (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/net/http_server_properties_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Returns true if |server| supports SPDY. Should only be called from IO 90 // Returns true if |server| supports SPDY. Should only be called from IO
91 // thread. 91 // thread.
92 virtual bool SupportsSpdy(const net::HostPortPair& server) const OVERRIDE; 92 virtual bool SupportsSpdy(const net::HostPortPair& server) const OVERRIDE;
93 93
94 // Add |server| as the SPDY server which supports SPDY protocol into the 94 // Add |server| as the SPDY server which supports SPDY protocol into the
95 // persisitent store. Should only be called from IO thread. 95 // persisitent store. Should only be called from IO thread.
96 virtual void SetSupportsSpdy(const net::HostPortPair& server, 96 virtual void SetSupportsSpdy(const net::HostPortPair& server,
97 bool support_spdy) OVERRIDE; 97 bool support_spdy) OVERRIDE;
98 98
99 // Returns true if |server| has an Alternate-Protocol header. 99 // Returns true if |server| has an Alternate-Protocol header.
100 virtual bool HasAlternateProtocol(const net::HostPortPair& server) OVERRIDE; 100 virtual bool HasAlternateProtocol(
101 const net::HostPortPair& server) const OVERRIDE;
101 102
102 // Returns the Alternate-Protocol and port for |server|. 103 // Returns the Alternate-Protocol and port for |server|.
103 // HasAlternateProtocol(server) must be true. 104 // HasAlternateProtocol(server) must be true.
104 virtual net::PortAlternateProtocolPair GetAlternateProtocol( 105 virtual net::PortAlternateProtocolPair GetAlternateProtocol(
105 const net::HostPortPair& server) OVERRIDE; 106 const net::HostPortPair& server) const OVERRIDE;
106 107
107 // Sets the Alternate-Protocol for |server|. 108 // Sets the Alternate-Protocol for |server|.
108 virtual void SetAlternateProtocol( 109 virtual void SetAlternateProtocol(
109 const net::HostPortPair& server, 110 const net::HostPortPair& server,
110 uint16 alternate_port, 111 uint16 alternate_port,
111 net::AlternateProtocol alternate_protocol) OVERRIDE; 112 net::AlternateProtocol alternate_protocol) OVERRIDE;
112 113
113 // Sets the Alternate-Protocol for |server| to be BROKEN. 114 // Sets the Alternate-Protocol for |server| to be BROKEN.
114 virtual void SetBrokenAlternateProtocol( 115 virtual void SetBrokenAlternateProtocol(
115 const net::HostPortPair& server) OVERRIDE; 116 const net::HostPortPair& server) OVERRIDE;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 io_prefs_update_timer_; 247 io_prefs_update_timer_;
247 248
248 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; 249 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_;
249 250
250 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 251 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
251 }; 252 };
252 253
253 } // namespace chrome_browser_net 254 } // namespace chrome_browser_net
254 255
255 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 256 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/http_server_properties_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698