OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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 CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
11 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
12 #include "content/public/browser/notification_service.h" | 12 #include "content/public/browser/notification_service.h" |
13 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
14 #include "content/public/browser/render_process_host.h" | 14 #include "content/public/browser/render_process_host.h" |
15 #include "net/nqe/network_quality_estimator.h" | 15 #include "net/nqe/rtt_throughput_estimates_observer.h" |
| 16 |
| 17 namespace net { |
| 18 class NetworkQualityEstimator; |
| 19 } |
16 | 20 |
17 namespace content { | 21 namespace content { |
18 | 22 |
19 // Creates network quality observer that listens for changes to the network | 23 // Creates network quality observer that listens for changes to the network |
20 // quality and manages sending updates to each RenderProcess. | 24 // quality and manages sending updates to each RenderProcess. |
21 CONTENT_EXPORT std::unique_ptr< | 25 CONTENT_EXPORT std::unique_ptr<net::RTTAndThroughputEstimatesObserver> |
22 net::NetworkQualityEstimator::RTTAndThroughputEstimatesObserver> | |
23 CreateNetworkQualityObserver( | 26 CreateNetworkQualityObserver( |
24 net::NetworkQualityEstimator* network_quality_estimator); | 27 net::NetworkQualityEstimator* network_quality_estimator); |
25 | 28 |
26 } // namespace content | 29 } // namespace content |
27 | 30 |
28 #endif // CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ | 31 #endif // CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ |
OLD | NEW |