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

Side by Side Diff: net/quic/crypto/quic_server_info.h

Issue 242643009: Added DISALLOW_COPY_AND_ASSIGN to disable copy/assign. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with TOT and internal CL: 65311983 Created 6 years, 8 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 | « net/quic/crypto/quic_crypto_server_config.h ('k') | net/quic/crypto/scoped_evp_aead_ctx.h » ('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 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
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_
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.h ('k') | net/quic/crypto/scoped_evp_aead_ctx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698