| Index: net/quic/quic_chromium_alarm_factory.h
|
| diff --git a/net/quic/quic_chromium_alarm_factory.h b/net/quic/quic_chromium_alarm_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fd446de53731f493ab687cf26436015dad44c6f9
|
| --- /dev/null
|
| +++ b/net/quic/quic_chromium_alarm_factory.h
|
| @@ -0,0 +1,46 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +//
|
| +// The Chrome-specific AlarmFactory for QuicConnection which uses
|
| +// a TaskRunner for alarms.
|
| +
|
| +#ifndef NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_
|
| +#define NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_
|
| +
|
| +#include <set>
|
| +
|
| +#include "base/macros.h"
|
| +#include "net/quic/quic_alarm_factory.h"
|
| +#include "net/quic/quic_connection.h"
|
| +#include "net/quic/quic_protocol.h"
|
| +#include "net/quic/quic_simple_buffer_allocator.h"
|
| +#include "net/quic/quic_time.h"
|
| +#include "net/udp/datagram_client_socket.h"
|
| +
|
| +namespace base {
|
| +class TaskRunner;
|
| +} // namespace base
|
| +
|
| +namespace net {
|
| +
|
| +class QuicClock;
|
| +class QuicRandom;
|
| +
|
| +class NET_EXPORT_PRIVATE QuicChromiumAlarmFactory : public QuicAlarmFactory {
|
| + public:
|
| + QuicChromiumAlarmFactory(base::TaskRunner* task_runner,
|
| + const QuicClock* clock);
|
| + QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override;
|
| + QuicArenaScopedPtr<QuicAlarm> CreateAlarm(
|
| + QuicArenaScopedPtr<QuicAlarm::Delegate> delegate,
|
| + QuicConnectionArena* arena) override;
|
| +
|
| + private:
|
| + base::TaskRunner* task_runner_;
|
| + const QuicClock* clock_;
|
| +};
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_
|
|
|