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

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

Issue 11125002: Add QuicFramer and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: narrowing in Created 8 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_CRYPTO_QUIC_DECRYPTER_H_
6 #define NET_QUIC_CRYPTO_QUIC_DECRYPTER_H_
7
8 #include "net/quic/crypto/crypto_protocol.h"
9 #include "net/quic/quic_protocol.h"
10
11 namespace net {
12
13 class QuicDecrypter {
14 public:
15 virtual ~QuicDecrypter() {}
16
17 static QuicDecrypter* Create(CryptoTag algorithm);
18
19 // Returns a newly created QuicData object containing the decrypted
20 // |ciphertext| or NULL if there is an error.
21 virtual QuicData* Decrypt(base::StringPiece associated_data,
22 base::StringPiece ciphertext) = 0;
23 };
24
25 } // namespace net
26
27 #endif // NET_QUIC_CRYPTO_QUIC_DECRYPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698