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

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

Issue 2531373002: net: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase on top of master branch Created 4 years 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
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
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
17 #include "net/quic/core/quic_server_id.h" 17 #include "net/quic/core/quic_server_id.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 class X509Certificate;
22
23 // QuicServerInfo is an interface for fetching information about a QUIC server. 21 // QuicServerInfo is an interface for fetching information about a QUIC server.
24 // This information may be stored on disk so does not include keys or other 22 // This information may be stored on disk so does not include keys or other
25 // sensitive information. Primarily it's intended for caching the QUIC server's 23 // sensitive information. Primarily it's intended for caching the QUIC server's
26 // crypto config. 24 // crypto config.
27 class NET_EXPORT_PRIVATE QuicServerInfo { 25 class NET_EXPORT_PRIVATE QuicServerInfo {
28 public: 26 public:
29 // Enum to track number of times data read/parse/write API calls of 27 // Enum to track number of times data read/parse/write API calls of
30 // QuicServerInfo to and from disk cache is called. 28 // QuicServerInfo to and from disk cache is called.
31 enum QuicServerInfoAPICall { 29 enum QuicServerInfoAPICall {
32 QUIC_SERVER_INFO_START = 0, 30 QUIC_SERVER_INFO_START = 0,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // |server_id| or NULL on failure. 170 // |server_id| or NULL on failure.
173 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0; 171 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0;
174 172
175 private: 173 private:
176 DISALLOW_COPY_AND_ASSIGN(QuicServerInfoFactory); 174 DISALLOW_COPY_AND_ASSIGN(QuicServerInfoFactory);
177 }; 175 };
178 176
179 } // namespace net 177 } // namespace net
180 178
181 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ 179 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_
OLDNEW
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.h ('k') | net/quic/core/quic_client_promised_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698