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

Side by Side Diff: net/quic/quic_client_session_base.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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_QUIC_CLIENT_SESSION_BASE_H_ 5 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_
6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ 6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_
7 7
8 #include "net/quic/quic_crypto_client_stream.h" 8 #include "net/quic/quic_crypto_client_stream.h"
9 #include "net/quic/quic_session.h" 9 #include "net/quic/quic_session.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 // Base class for all client-specific QuicSession subclasses. 13 // Base class for all client-specific QuicSession subclasses.
14 class NET_EXPORT_PRIVATE QuicClientSessionBase : public QuicSession { 14 class NET_EXPORT_PRIVATE QuicClientSessionBase : public QuicSession {
15 public: 15 public:
16 QuicClientSessionBase(QuicConnection* connection, 16 QuicClientSessionBase(QuicConnection* connection, const QuicConfig& config);
17 const QuicConfig& config);
18 17
19 virtual ~QuicClientSessionBase(); 18 virtual ~QuicClientSessionBase();
20 19
21 // Called when the proof in |cached| is marked valid. If this is a secure 20 // Called when the proof in |cached| is marked valid. If this is a secure
22 // QUIC session, then this will happen only after the proof verifier 21 // QUIC session, then this will happen only after the proof verifier
23 // completes. If this is an insecure QUIC connection, this will happen 22 // completes. If this is an insecure QUIC connection, this will happen
24 // as soon as a valid config is discovered (either from the cache or 23 // as soon as a valid config is discovered (either from the cache or
25 // from the server). 24 // from the server).
26 virtual void OnProofValid( 25 virtual void OnProofValid(
27 const QuicCryptoClientConfig::CachedState& cached) = 0; 26 const QuicCryptoClientConfig::CachedState& cached) = 0;
28 27
29 // Called when proof verification details become available, either because 28 // Called when proof verification details become available, either because
30 // proof verification is complete, or when cached details are used. This 29 // proof verification is complete, or when cached details are used. This
31 // will only be called for secure QUIC connections. 30 // will only be called for secure QUIC connections.
32 virtual void OnProofVerifyDetailsAvailable( 31 virtual void OnProofVerifyDetailsAvailable(
33 const ProofVerifyDetails& verify_details) = 0; 32 const ProofVerifyDetails& verify_details) = 0;
34 33
35 private: 34 private:
36 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); 35 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase);
37 }; 36 };
38 37
39 } // namespace net 38 } // namespace net
40 39
41 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ 40 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698