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

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

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_encrypter.h ('k') | net/quic/crypto/common_cert_set.cc » ('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_CHANNEL_ID_CHROMIUM_H_ 5 #ifndef NET_QUIC_CRYPTO_CHANNEL_ID_CHROMIUM_H_
6 #define NET_QUIC_CRYPTO_CHANNEL_ID_CHROMIUM_H_ 6 #define NET_QUIC_CRYPTO_CHANNEL_ID_CHROMIUM_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "net/quic/crypto/channel_id.h" 10 #include "net/quic/crypto/channel_id.h"
11 11
12 namespace crypto { 12 namespace crypto {
13 class ECPrivateKey; 13 class ECPrivateKey;
14 } // namespace crypto 14 } // namespace crypto
15 15
16 namespace net { 16 namespace net {
17 17
18 class ChannelIDService; 18 class ChannelIDService;
19 19
20 class NET_EXPORT_PRIVATE ChannelIDKeyChromium: public ChannelIDKey { 20 class NET_EXPORT_PRIVATE ChannelIDKeyChromium: public ChannelIDKey {
21 public: 21 public:
22 explicit ChannelIDKeyChromium(crypto::ECPrivateKey* ec_private_key); 22 explicit ChannelIDKeyChromium(crypto::ECPrivateKey* ec_private_key);
23 virtual ~ChannelIDKeyChromium(); 23 ~ChannelIDKeyChromium() override;
24 24
25 // ChannelIDKey interface 25 // ChannelIDKey interface
26 virtual bool Sign(base::StringPiece signed_data, 26 bool Sign(base::StringPiece signed_data,
27 std::string* out_signature) const override; 27 std::string* out_signature) const override;
28 virtual std::string SerializeKey() const override; 28 std::string SerializeKey() const override;
29 29
30 private: 30 private:
31 scoped_ptr<crypto::ECPrivateKey> ec_private_key_; 31 scoped_ptr<crypto::ECPrivateKey> ec_private_key_;
32 }; 32 };
33 33
34 // ChannelIDSourceChromium implements the QUIC ChannelIDSource interface. 34 // ChannelIDSourceChromium implements the QUIC ChannelIDSource interface.
35 class ChannelIDSourceChromium : public ChannelIDSource { 35 class ChannelIDSourceChromium : public ChannelIDSource {
36 public: 36 public:
37 explicit ChannelIDSourceChromium( 37 explicit ChannelIDSourceChromium(
38 ChannelIDService* channel_id_service); 38 ChannelIDService* channel_id_service);
39 virtual ~ChannelIDSourceChromium(); 39 ~ChannelIDSourceChromium() override;
40 40
41 // ChannelIDSource interface 41 // ChannelIDSource interface
42 virtual QuicAsyncStatus GetChannelIDKey( 42 QuicAsyncStatus GetChannelIDKey(const std::string& hostname,
43 const std::string& hostname, 43 scoped_ptr<ChannelIDKey>* channel_id_key,
44 scoped_ptr<ChannelIDKey>* channel_id_key, 44 ChannelIDSourceCallback* callback) override;
45 ChannelIDSourceCallback* callback) override;
46 45
47 private: 46 private:
48 class Job; 47 class Job;
49 typedef std::set<Job*> JobSet; 48 typedef std::set<Job*> JobSet;
50 49
51 void OnJobComplete(Job* job); 50 void OnJobComplete(Job* job);
52 51
53 // Set owning pointers to active jobs. 52 // Set owning pointers to active jobs.
54 JobSet active_jobs_; 53 JobSet active_jobs_;
55 54
56 // The service for retrieving Channel ID keys. 55 // The service for retrieving Channel ID keys.
57 ChannelIDService* const channel_id_service_; 56 ChannelIDService* const channel_id_service_;
58 57
59 DISALLOW_COPY_AND_ASSIGN(ChannelIDSourceChromium); 58 DISALLOW_COPY_AND_ASSIGN(ChannelIDSourceChromium);
60 }; 59 };
61 60
62 } // namespace net 61 } // namespace net
63 62
64 #endif // NET_QUIC_CRYPTO_CHANNEL_ID_CHROMIUM_H_ 63 #endif // NET_QUIC_CRYPTO_CHANNEL_ID_CHROMIUM_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_encrypter.h ('k') | net/quic/crypto/common_cert_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698