OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 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_NQE_SOCKET_WATCHER_FACTORY_H_ | 5 #ifndef NET_NQE_SOCKET_WATCHER_FACTORY_H_ |
6 #define NET_NQE_SOCKET_WATCHER_FACTORY_H_ | 6 #define NET_NQE_SOCKET_WATCHER_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/single_thread_task_runner.h" |
13 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
14 #include "net/socket/socket_performance_watcher.h" | 15 #include "net/socket/socket_performance_watcher.h" |
15 #include "net/socket/socket_performance_watcher_factory.h" | 16 #include "net/socket/socket_performance_watcher_factory.h" |
16 | 17 |
17 namespace base { | 18 namespace base { |
18 class SingleThreadTaskRunner; | |
19 class TimeDelta; | 19 class TimeDelta; |
20 } // namespace base | 20 } // namespace base |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 namespace { | 24 namespace { |
25 typedef base::Callback<void(SocketPerformanceWatcherFactory::Protocol protocol, | 25 typedef base::Callback<void(SocketPerformanceWatcherFactory::Protocol protocol, |
26 const base::TimeDelta& rtt)> | 26 const base::TimeDelta& rtt)> |
27 OnUpdatedRTTAvailableCallback; | 27 OnUpdatedRTTAvailableCallback; |
28 } | 28 } |
(...skipping 27 matching lines...) Expand all Loading... |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(SocketWatcherFactory); | 57 DISALLOW_COPY_AND_ASSIGN(SocketWatcherFactory); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace internal | 60 } // namespace internal |
61 | 61 |
62 } // namespace nqe | 62 } // namespace nqe |
63 | 63 |
64 } // namespace net | 64 } // namespace net |
65 | 65 |
66 #endif // NET_NQE_SOCKET_WATCHER_FACTORY_H_ | 66 #endif // NET_NQE_SOCKET_WATCHER_FACTORY_H_ |
OLD | NEW |