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

Side by Side Diff: net/quic/quartc/quartc_factory.h

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years 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/quartc/quartc_alarm_factory.h ('k') | net/quic/quartc/quartc_factory_interface.h » ('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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_QUARTC_QUARTC_FACTORY_H_ 5 #ifndef NET_QUIC_QUARTC_QUARTC_FACTORY_H_
6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_H_ 6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_H_
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "net/base/net_export.h"
11 #include "net/quic/core/quic_alarm_factory.h" 10 #include "net/quic/core/quic_alarm_factory.h"
12 #include "net/quic/core/quic_connection.h" 11 #include "net/quic/core/quic_connection.h"
13 #include "net/quic/core/quic_simple_buffer_allocator.h" 12 #include "net/quic/core/quic_simple_buffer_allocator.h"
13 #include "net/quic/platform/api/quic_export.h"
14 #include "net/quic/platform/impl/quic_chromium_clock.h" 14 #include "net/quic/platform/impl/quic_chromium_clock.h"
15 #include "net/quic/quartc/quartc_alarm_factory.h" 15 #include "net/quic/quartc/quartc_alarm_factory.h"
16 #include "net/quic/quartc/quartc_factory_interface.h" 16 #include "net/quic/quartc/quartc_factory_interface.h"
17 #include "net/quic/quartc/quartc_packet_writer.h" 17 #include "net/quic/quartc/quartc_packet_writer.h"
18 #include "net/quic/quartc/quartc_task_runner_interface.h" 18 #include "net/quic/quartc/quartc_task_runner_interface.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 // Implements the QuartcFactoryInterface to create the instances of 22 // Implements the QuartcFactoryInterface to create the instances of
23 // QuartcSessionInterface. Implements the QuicAlarmFactory to create alarms 23 // QuartcSessionInterface. Implements the QuicAlarmFactory to create alarms
24 // using the QuartcTaskRunner. Implements the QuicConnectionHelperInterface used 24 // using the QuartcTaskRunner. Implements the QuicConnectionHelperInterface used
25 // by the QuicConnections. Only one QuartcFactory is expected to be created. 25 // by the QuicConnections. Only one QuartcFactory is expected to be created.
26 class NET_EXPORT_PRIVATE QuartcFactory : public QuartcFactoryInterface, 26 class QUIC_EXPORT_PRIVATE QuartcFactory : public QuartcFactoryInterface,
27 public QuicAlarmFactory, 27 public QuicAlarmFactory,
28 public QuicConnectionHelperInterface { 28 public QuicConnectionHelperInterface {
29 public: 29 public:
30 QuartcFactory(const QuartcFactoryConfig& factory_config); 30 QuartcFactory(const QuartcFactoryConfig& factory_config);
31 ~QuartcFactory() override; 31 ~QuartcFactory() override;
32 32
33 // QuartcFactoryInterface overrides. 33 // QuartcFactoryInterface overrides.
34 std::unique_ptr<QuartcSessionInterface> CreateQuartcSession( 34 std::unique_ptr<QuartcSessionInterface> CreateQuartcSession(
35 const QuartcSessionConfig& quartc_session_config) override; 35 const QuartcSessionConfig& quartc_session_config) override;
36 36
37 // QuicAlarmFactory overrides. 37 // QuicAlarmFactory overrides.
38 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override; 38 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override;
(...skipping 20 matching lines...) Expand all
59 QuicChromiumClock clock_; 59 QuicChromiumClock clock_;
60 SimpleBufferAllocator buffer_allocator_; 60 SimpleBufferAllocator buffer_allocator_;
61 // An AtExitManager owned by the QuartcFactory to manage the lifetime of 61 // An AtExitManager owned by the QuartcFactory to manage the lifetime of
62 // Singletons. 62 // Singletons.
63 std::unique_ptr<base::AtExitManager> at_exit_manager_; 63 std::unique_ptr<base::AtExitManager> at_exit_manager_;
64 }; 64 };
65 65
66 } // namespace net 66 } // namespace net
67 67
68 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_ 68 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/quartc/quartc_alarm_factory.h ('k') | net/quic/quartc/quartc_factory_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698