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/quartc/quartc_alarm_factory.h

Issue 2324833004: Define Stable API for WebRTC/Quartc (Closed)
Patch Set: Add virtual destructors required by WebRTC compiler. Created 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_QUARTC_QUARTC_ALARM_FACTORY_H_
6 #define NET_QUIC_QUARTC_QUARTC_ALARM_FACTORY_H_
7
8 #include <utility>
9
10 #include "net/quic/core/quic_alarm_factory.h"
11 #include "net/quic/core/quic_clock.h"
12
13 namespace base {
14 class TaskRunner;
15 } // namespace base
16
17 namespace net {
18
19 class NET_EXPORT_PRIVATE QuartcAlarmFactory : public QuicAlarmFactory {
pthatcher2 2016/10/05 22:12:04 Can you add a comment on the class? Something tha
zhihuang1 2016/10/13 06:22:39 Done.
20 public:
21 QuartcAlarmFactory(base::TaskRunner* task_runner, const QuicClock* clock);
22 ~QuartcAlarmFactory() override;
23
24 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override;
25
26 QuicArenaScopedPtr<QuicAlarm> CreateAlarm(
27 QuicArenaScopedPtr<QuicAlarm::Delegate> delegate,
28 QuicConnectionArena* arena) override;
29
30 private:
31 base::TaskRunner* task_runner_;
32 const QuicClock* clock_;
Ryan Hamilton 2016/10/10 19:48:30 nit: Can you comment on ownership? (I assume both
zhihuang1 2016/10/13 06:22:39 Done.
33 // QuartcAlarmFactoryObserver* factory_observer_ = nullptr;
pthatcher2 2016/10/05 22:12:04 Should this be deleted?
zhihuang1 2016/10/13 06:22:39 Done.
34 DISALLOW_COPY_AND_ASSIGN(QuartcAlarmFactory);
35 };
36
37 } // namespace net
38
39 #endif // NET_QUIC_QUARTC_QUARTC_ALARM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698