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

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

Issue 180743026: Relanding 255326 "HttpServerProperties - Implement MRU for AlternateProtocolMap. Persist" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Erase to fix compilation error 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( 100 virtual bool HasAlternateProtocol(const net::HostPortPair& server) OVERRIDE;
101 const net::HostPortPair& server) const OVERRIDE;
102 101
103 // Returns the Alternate-Protocol and port for |server|. 102 // Returns the Alternate-Protocol and port for |server|.
104 // HasAlternateProtocol(server) must be true. 103 // HasAlternateProtocol(server) must be true.
105 virtual net::PortAlternateProtocolPair GetAlternateProtocol( 104 virtual net::PortAlternateProtocolPair GetAlternateProtocol(
106 const net::HostPortPair& server) const OVERRIDE; 105 const net::HostPortPair& server) OVERRIDE;
107 106
108 // Sets the Alternate-Protocol for |server|. 107 // Sets the Alternate-Protocol for |server|.
109 virtual void SetAlternateProtocol( 108 virtual void SetAlternateProtocol(
110 const net::HostPortPair& server, 109 const net::HostPortPair& server,
111 uint16 alternate_port, 110 uint16 alternate_port,
112 net::AlternateProtocol alternate_protocol) OVERRIDE; 111 net::AlternateProtocol alternate_protocol) OVERRIDE;
113 112
114 // Sets the Alternate-Protocol for |server| to be BROKEN. 113 // Sets the Alternate-Protocol for |server| to be BROKEN.
115 virtual void SetBrokenAlternateProtocol( 114 virtual void SetBrokenAlternateProtocol(
116 const net::HostPortPair& server) OVERRIDE; 115 const net::HostPortPair& server) OVERRIDE;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 io_prefs_update_timer_; 249 io_prefs_update_timer_;
251 250
252 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; 251 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_;
253 252
254 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 253 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
255 }; 254 };
256 255
257 } // namespace chrome_browser_net 256 } // namespace chrome_browser_net
258 257
259 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 258 #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