| 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/network_quality_estimator.h" |
| 16 #include "net/nqe/rtt_throughput_estimates_observer.h" |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 | 19 |
| 19 // Creates network quality observer that listens for changes to the network | 20 // Creates network quality observer that listens for changes to the network |
| 20 // quality and manages sending updates to each RenderProcess. | 21 // quality and manages sending updates to each RenderProcess. |
| 21 CONTENT_EXPORT std::unique_ptr< | 22 CONTENT_EXPORT std::unique_ptr<net::RTTAndThroughputEstimatesObserver> |
| 22 net::NetworkQualityEstimator::RTTAndThroughputEstimatesObserver> | |
| 23 CreateNetworkQualityObserver( | 23 CreateNetworkQualityObserver( |
| 24 net::NetworkQualityEstimator* network_quality_estimator); | 24 net::NetworkQualityEstimator* network_quality_estimator); |
| 25 | 25 |
| 26 } // namespace content | 26 } // namespace content |
| 27 | 27 |
| 28 #endif // CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ | 28 #endif // CONTENT_PUBLIC_BROWSER_NETWORK_QUALITY_OBSERVER_FACTORY_H_ |
| OLD | NEW |