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

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

Issue 2936823002: NQE: Exclude network observations from private networks (Closed)
Patch Set: bengr comments, rebased Created 3 years, 6 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/BUILD.gn ('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 #include <vector>
13 14
14 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
18 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 20 #include "base/observer_list.h"
20 #include "base/optional.h" 21 #include "base/optional.h"
21 #include "base/threading/thread_checker.h" 22 #include "base/threading/thread_checker.h"
22 #include "base/time/time.h" 23 #include "base/time/time.h"
23 #include "net/base/net_export.h" 24 #include "net/base/net_export.h"
24 #include "net/base/network_change_notifier.h" 25 #include "net/base/network_change_notifier.h"
26 #include "net/log/net_log_with_source.h"
25 #include "net/nqe/cached_network_quality.h" 27 #include "net/nqe/cached_network_quality.h"
26 #include "net/nqe/effective_connection_type.h" 28 #include "net/nqe/effective_connection_type.h"
27 #include "net/nqe/effective_connection_type_observer.h" 29 #include "net/nqe/effective_connection_type_observer.h"
28 #include "net/nqe/event_creator.h" 30 #include "net/nqe/event_creator.h"
29 #include "net/nqe/external_estimate_provider.h" 31 #include "net/nqe/external_estimate_provider.h"
30 #include "net/nqe/network_id.h" 32 #include "net/nqe/network_id.h"
31 #include "net/nqe/network_quality.h" 33 #include "net/nqe/network_quality.h"
32 #include "net/nqe/network_quality_estimator_params.h" 34 #include "net/nqe/network_quality_estimator_params.h"
33 #include "net/nqe/network_quality_observation.h" 35 #include "net/nqe/network_quality_observation.h"
34 #include "net/nqe/network_quality_observation_source.h" 36 #include "net/nqe/network_quality_observation_source.h"
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 // Vector that contains observation sources that should not be used when 657 // Vector that contains observation sources that should not be used when
656 // computing the estimate at HTTP layer. 658 // computing the estimate at HTTP layer.
657 const std::vector<NetworkQualityObservationSource> 659 const std::vector<NetworkQualityObservationSource>
658 disallowed_observation_sources_for_http_; 660 disallowed_observation_sources_for_http_;
659 661
660 // Vector that contains observation sources that should not be used when 662 // Vector that contains observation sources that should not be used when
661 // computing the estimate at transport layer. 663 // computing the estimate at transport layer.
662 const std::vector<NetworkQualityObservationSource> 664 const std::vector<NetworkQualityObservationSource>
663 disallowed_observation_sources_for_transport_; 665 disallowed_observation_sources_for_transport_;
664 666
667 NetLogWithSource net_log_;
668
665 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 669 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
666 670
667 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 671 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
668 }; 672 };
669 673
670 } // namespace net 674 } // namespace net
671 675
672 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 676 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698