| OLD | NEW |
| 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 NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Get the list of servers (host/port) that support SPDY. The max_size is the | 63 // Get the list of servers (host/port) that support SPDY. The max_size is the |
| 64 // number of MRU servers that support SPDY that are to be returned. | 64 // number of MRU servers that support SPDY that are to be returned. |
| 65 void GetSpdyServerList(base::ListValue* spdy_server_list, | 65 void GetSpdyServerList(base::ListValue* spdy_server_list, |
| 66 size_t max_size) const; | 66 size_t max_size) const; |
| 67 | 67 |
| 68 // Returns flattened string representation of the |host_port_pair|. Used by | 68 // Returns flattened string representation of the |host_port_pair|. Used by |
| 69 // unittests. | 69 // unittests. |
| 70 static std::string GetFlattenedSpdyServer(const HostPortPair& host_port_pair); | 70 static std::string GetFlattenedSpdyServer(const HostPortPair& host_port_pair); |
| 71 | 71 |
| 72 // Returns the canonical host suffix for |host|, or std::string() if none | 72 // Returns the canonical host suffix for |host|, or nullptr if none |
| 73 // exists. | 73 // exists. |
| 74 std::string GetCanonicalSuffix(const std::string& host); | 74 const std::string* GetCanonicalSuffix(const std::string& host) const; |
| 75 | 75 |
| 76 // ----------------------------- | 76 // ----------------------------- |
| 77 // HttpServerProperties methods: | 77 // HttpServerProperties methods: |
| 78 // ----------------------------- | 78 // ----------------------------- |
| 79 | 79 |
| 80 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; | 80 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; |
| 81 void Clear() override; | 81 void Clear() override; |
| 82 bool SupportsRequestPriority(const url::SchemeHostPort& server) override; | 82 bool SupportsRequestPriority(const url::SchemeHostPort& server) override; |
| 83 bool GetSupportsSpdy(const url::SchemeHostPort& server) override; | 83 bool GetSupportsSpdy(const url::SchemeHostPort& server) override; |
| 84 void SetSupportsSpdy(const url::SchemeHostPort& server, | 84 void SetSupportsSpdy(const url::SchemeHostPort& server, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 size_t max_server_configs_stored_in_properties_; | 189 size_t max_server_configs_stored_in_properties_; |
| 190 | 190 |
| 191 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 191 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
| 192 | 192 |
| 193 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 193 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace net | 196 } // namespace net |
| 197 | 197 |
| 198 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 198 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| OLD | NEW |