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

Side by Side Diff: net/quic/crypto/crypto_framer.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 (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_QUIC_CRYPTO_CRYPTO_FRAMER_H_ 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_
6 #define NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ 6 #define NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 class QuicDataWriter; 23 class QuicDataWriter;
24 24
25 class NET_EXPORT_PRIVATE CryptoFramerVisitorInterface { 25 class NET_EXPORT_PRIVATE CryptoFramerVisitorInterface {
26 public: 26 public:
27 virtual ~CryptoFramerVisitorInterface() {} 27 virtual ~CryptoFramerVisitorInterface() {}
28 28
29 // Called if an error is detected. 29 // Called if an error is detected.
30 virtual void OnError(CryptoFramer* framer) = 0; 30 virtual void OnError(CryptoFramer* framer) = 0;
31 31
32 // Called when a complete handshake message has been parsed. 32 // Called when a complete handshake message has been parsed.
33 virtual void OnHandshakeMessage( 33 virtual void OnHandshakeMessage(const CryptoHandshakeMessage& message) = 0;
34 const CryptoHandshakeMessage& message) = 0;
35 }; 34 };
36 35
37 // A class for framing the crypto messages that are exchanged in a QUIC 36 // A class for framing the crypto messages that are exchanged in a QUIC
38 // session. 37 // session.
39 class NET_EXPORT_PRIVATE CryptoFramer { 38 class NET_EXPORT_PRIVATE CryptoFramer {
40 public: 39 public:
41 CryptoFramer(); 40 CryptoFramer();
42 41
43 virtual ~CryptoFramer(); 42 virtual ~CryptoFramer();
44 43
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // tags_and_lengths_ contains the tags that are currently being parsed and 104 // tags_and_lengths_ contains the tags that are currently being parsed and
106 // their lengths. 105 // their lengths.
107 std::vector<std::pair<QuicTag, size_t> > tags_and_lengths_; 106 std::vector<std::pair<QuicTag, size_t> > tags_and_lengths_;
108 // Cumulative length of all values in the message currently being parsed. 107 // Cumulative length of all values in the message currently being parsed.
109 size_t values_len_; 108 size_t values_len_;
110 }; 109 };
111 110
112 } // namespace net 111 } // namespace net
113 112
114 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ 113 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698