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

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

Issue 253903002: SPDY - persist 300 most recently used servers that support SPDY to preferences file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Persist 300 MRU servers that support SPDY Created 6 years, 7 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // ---------------------------------- 82 // ----------------------------------
83 83
84 // Gets a weak pointer for this object. 84 // Gets a weak pointer for this object.
85 virtual base::WeakPtr<net::HttpServerProperties> GetWeakPtr() OVERRIDE; 85 virtual base::WeakPtr<net::HttpServerProperties> GetWeakPtr() OVERRIDE;
86 86
87 // Deletes all data. Works asynchronously. 87 // Deletes all data. Works asynchronously.
88 virtual void Clear() OVERRIDE; 88 virtual void Clear() OVERRIDE;
89 89
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) 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(const net::HostPortPair& server) OVERRIDE;
101 101
102 // Returns the Alternate-Protocol and port for |server|. 102 // Returns the Alternate-Protocol and port for |server|.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 io_prefs_update_timer_; 257 io_prefs_update_timer_;
258 258
259 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; 259 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_;
260 260
261 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 261 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
262 }; 262 };
263 263
264 } // namespace chrome_browser_net 264 } // namespace chrome_browser_net
265 265
266 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 266 #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