Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1368)

Side by Side Diff: net/nqe/network_quality_estimator.h

Issue 2643213003: NQE: Add net log events when there is a significant change in metrics (Closed)
Patch Set: ryansturm comments Created 3 years, 10 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
« no previous file with comments | « net/nqe/event_creator.cc ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NETWORK_QUALITY_ESTIMATOR_H_ 5 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "base/threading/thread_checker.h" 20 #include "base/threading/thread_checker.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "net/base/net_export.h" 22 #include "net/base/net_export.h"
23 #include "net/base/network_change_notifier.h" 23 #include "net/base/network_change_notifier.h"
24 #include "net/log/net_log_with_source.h"
25 #include "net/nqe/cached_network_quality.h" 24 #include "net/nqe/cached_network_quality.h"
26 #include "net/nqe/effective_connection_type.h" 25 #include "net/nqe/effective_connection_type.h"
26 #include "net/nqe/event_creator.h"
27 #include "net/nqe/external_estimate_provider.h" 27 #include "net/nqe/external_estimate_provider.h"
28 #include "net/nqe/network_id.h" 28 #include "net/nqe/network_id.h"
29 #include "net/nqe/network_quality.h" 29 #include "net/nqe/network_quality.h"
30 #include "net/nqe/network_quality_observation.h" 30 #include "net/nqe/network_quality_observation.h"
31 #include "net/nqe/network_quality_observation_source.h" 31 #include "net/nqe/network_quality_observation_source.h"
32 #include "net/nqe/network_quality_store.h" 32 #include "net/nqe/network_quality_store.h"
33 #include "net/nqe/observation_buffer.h" 33 #include "net/nqe/observation_buffer.h"
34 #include "net/socket/socket_performance_watcher_factory.h" 34 #include "net/socket/socket_performance_watcher_factory.h"
35 35
36 namespace base { 36 namespace base {
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 std::unique_ptr<nqe::internal::NetworkQualityStore> network_quality_store_; 756 std::unique_ptr<nqe::internal::NetworkQualityStore> network_quality_store_;
757 757
758 // True if effective connection type value has been forced via variation 758 // True if effective connection type value has been forced via variation
759 // parameters. If set to true, GetEffectiveConnectionType() will always return 759 // parameters. If set to true, GetEffectiveConnectionType() will always return
760 // |forced_effective_connection_type_|. 760 // |forced_effective_connection_type_|.
761 const bool forced_effective_connection_type_set_; 761 const bool forced_effective_connection_type_set_;
762 const EffectiveConnectionType forced_effective_connection_type_; 762 const EffectiveConnectionType forced_effective_connection_type_;
763 763
764 base::ThreadChecker thread_checker_; 764 base::ThreadChecker thread_checker_;
765 765
766 NetLogWithSource net_log_; 766 // Manages the writing of events to the net log.
767 nqe::internal::EventCreator event_creator_;
767 768
768 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 769 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
769 770
770 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 771 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
771 }; 772 };
772 773
773 } // namespace net 774 } // namespace net
774 775
775 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 776 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
OLDNEW
« no previous file with comments | « net/nqe/event_creator.cc ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698