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

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

Issue 1581283002: Rename chromium-specific QUIC classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing Created 4 years, 11 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
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 // The Chrome-specific helper for QuicConnection which uses 5 // The Chrome-specific helper for QuicConnection which uses
6 // a TaskRunner for alarms, and uses a DatagramClientSocket for writing data. 6 // a TaskRunner for alarms, and uses a DatagramClientSocket for writing data.
7 7
8 #ifndef NET_QUIC_QUIC_CONNECTION_HELPER_H_ 8 #ifndef NET_QUIC_QUIC_CONNECTION_HELPER_H_
9 #define NET_QUIC_QUIC_CONNECTION_HELPER_H_ 9 #define NET_QUIC_QUIC_CONNECTION_HELPER_H_
10 10
11 #include "net/quic/quic_connection.h"
12
13 #include <set> 11 #include <set>
14 12
15 #include "base/macros.h" 13 #include "base/macros.h"
16 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
17 #include "net/base/ip_endpoint.h" 15 #include "net/base/ip_endpoint.h"
16 #include "net/quic/quic_connection.h"
18 #include "net/quic/quic_protocol.h" 17 #include "net/quic/quic_protocol.h"
19 #include "net/quic/quic_simple_buffer_allocator.h" 18 #include "net/quic/quic_simple_buffer_allocator.h"
20 #include "net/quic/quic_time.h" 19 #include "net/quic/quic_time.h"
21 #include "net/udp/datagram_client_socket.h" 20 #include "net/udp/datagram_client_socket.h"
22 21
23 namespace base { 22 namespace base {
24 class TaskRunner; 23 class TaskRunner;
25 } // namespace base 24 } // namespace base
26 25
27 namespace net { 26 namespace net {
28 27
29 class QuicClock; 28 class QuicClock;
30 class QuicRandom; 29 class QuicRandom;
31 30
32 class NET_EXPORT_PRIVATE QuicConnectionHelper 31 class NET_EXPORT_PRIVATE QuicChromiumConnectionHelper
33 : public QuicConnectionHelperInterface { 32 : public QuicConnectionHelperInterface {
34 public: 33 public:
35 QuicConnectionHelper(base::TaskRunner* task_runner, 34 QuicChromiumConnectionHelper(base::TaskRunner* task_runner,
36 const QuicClock* clock, 35 const QuicClock* clock,
37 QuicRandom* random_generator); 36 QuicRandom* random_generator);
38 ~QuicConnectionHelper() override; 37 ~QuicChromiumConnectionHelper() override;
39 38
40 // QuicConnectionHelperInterface 39 // QuicConnectionHelperInterface
41 const QuicClock* GetClock() const override; 40 const QuicClock* GetClock() const override;
42 QuicRandom* GetRandomGenerator() override; 41 QuicRandom* GetRandomGenerator() override;
43 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override; 42 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override;
44 QuicBufferAllocator* GetBufferAllocator() override; 43 QuicBufferAllocator* GetBufferAllocator() override;
45 44
46 private: 45 private:
47 base::TaskRunner* task_runner_; 46 base::TaskRunner* task_runner_;
48 const QuicClock* clock_; 47 const QuicClock* clock_;
49 QuicRandom* random_generator_; 48 QuicRandom* random_generator_;
50 SimpleBufferAllocator buffer_allocator_; 49 SimpleBufferAllocator buffer_allocator_;
51 base::WeakPtrFactory<QuicConnectionHelper> weak_factory_; 50 base::WeakPtrFactory<QuicChromiumConnectionHelper> weak_factory_;
52 51
53 DISALLOW_COPY_AND_ASSIGN(QuicConnectionHelper); 52 DISALLOW_COPY_AND_ASSIGN(QuicChromiumConnectionHelper);
54 }; 53 };
55 54
56 } // namespace net 55 } // namespace net
57 56
58 #endif // NET_QUIC_QUIC_CONNECTION_HELPER_H_ 57 #endif // NET_QUIC_QUIC_CONNECTION_HELPER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_stream_test.cc ('k') | net/quic/quic_chromium_connection_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698