| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ | 5 #ifndef NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ |
| 6 #define NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ | 6 #define NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 private: | 93 private: |
| 94 // ParseInner is a helper function for Parse. | 94 // ParseInner is a helper function for Parse. |
| 95 bool ParseInner(const std::string& data); | 95 bool ParseInner(const std::string& data); |
| 96 | 96 |
| 97 // SerializeInner is a helper function for Serialize. | 97 // SerializeInner is a helper function for Serialize. |
| 98 std::string SerializeInner() const; | 98 std::string SerializeInner() const; |
| 99 | 99 |
| 100 // This is the QUIC server (hostname, port, is_https, privacy_mode) tuple for | 100 // This is the QUIC server (hostname, port, is_https, privacy_mode) tuple for |
| 101 // which we restore the crypto_config. | 101 // which we restore the crypto_config. |
| 102 const QuicServerId server_id_; | 102 const QuicServerId server_id_; |
| 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(QuicServerInfo); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 class QuicServerInfoFactory { | 107 class QuicServerInfoFactory { |
| 106 public: | 108 public: |
| 107 virtual ~QuicServerInfoFactory(); | 109 virtual ~QuicServerInfoFactory(); |
| 108 | 110 |
| 109 // GetForServer returns a fresh, allocated QuicServerInfo for the given | 111 // GetForServer returns a fresh, allocated QuicServerInfo for the given |
| 110 // |server_id| or NULL on failure. | 112 // |server_id| or NULL on failure. |
| 111 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0; | 113 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0; |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace net | 116 } // namespace net |
| 115 | 117 |
| 116 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ | 118 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ |
| OLD | NEW |