| 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 |
| 11 #include <deque> | 11 #include <deque> |
| 12 #include <map> | 12 #include <map> |
| 13 #include <set> | 13 #include <set> |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/weak_ptr.h" |
| 18 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 19 #include "base/values.h" | 20 #include "base/values.h" |
| 20 #include "net/base/host_port_pair.h" | 21 #include "net/base/host_port_pair.h" |
| 21 #include "net/base/ip_address.h" | 22 #include "net/base/ip_address.h" |
| 22 #include "net/base/linked_hash_map.h" | 23 #include "net/base/linked_hash_map.h" |
| 23 #include "net/base/net_export.h" | 24 #include "net/base/net_export.h" |
| 24 #include "net/http/http_server_properties.h" | 25 #include "net/http/http_server_properties.h" |
| 25 | 26 |
| 26 namespace base { | 27 namespace base { |
| 27 class ListValue; | 28 class ListValue; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 static std::string GetFlattenedSpdyServer(const HostPortPair& host_port_pair); | 71 static std::string GetFlattenedSpdyServer(const HostPortPair& host_port_pair); |
| 71 | 72 |
| 72 // Returns the canonical host suffix for |host|, or std::string() if none | 73 // Returns the canonical host suffix for |host|, or std::string() if none |
| 73 // exists. | 74 // exists. |
| 74 std::string GetCanonicalSuffix(const std::string& host); | 75 std::string GetCanonicalSuffix(const std::string& host); |
| 75 | 76 |
| 76 // ----------------------------- | 77 // ----------------------------- |
| 77 // HttpServerProperties methods: | 78 // HttpServerProperties methods: |
| 78 // ----------------------------- | 79 // ----------------------------- |
| 79 | 80 |
| 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, |
| 85 bool support_spdy) override; | 85 bool support_spdy) override; |
| 86 bool RequiresHTTP11(const HostPortPair& server) override; | 86 bool RequiresHTTP11(const HostPortPair& server) override; |
| 87 void SetHTTP11Required(const HostPortPair& server) override; | 87 void SetHTTP11Required(const HostPortPair& server) override; |
| 88 void MaybeForceHTTP11(const HostPortPair& server, | 88 void MaybeForceHTTP11(const HostPortPair& server, |
| 89 SSLConfig* ssl_config) override; | 89 SSLConfig* ssl_config) override; |
| 90 AlternativeServiceVector GetAlternativeServices( | 90 AlternativeServiceVector GetAlternativeServices( |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 size_t max_server_configs_stored_in_properties_; | 190 size_t max_server_configs_stored_in_properties_; |
| 191 | 191 |
| 192 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 192 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 194 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace net | 197 } // namespace net |
| 198 | 198 |
| 199 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 199 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| OLD | NEW |