Fire an error if a pref used in the UI is missing once all prefs are fetched.
[chromium-blink-merge.git] / chrome / browser / metrics / network_stats_uploader.h
blob17656110e7a3b6327bd60c812431fa22600fed59
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_METRICS_NETWORK_STATS_UPLOADER_H_
6 #define CHROME_BROWSER_METRICS_NETWORK_STATS_UPLOADER_H_
8 #include <string>
10 #include "base/basictypes.h"
12 class PrefService;
13 class PrefRegistrySimple;
15 // NetworkStatsUploader implements the collection of various network stats,
16 // which is done upon successful transmission of an UMA log.
17 class NetworkStatsUploader {
18 public:
19 NetworkStatsUploader();
20 ~NetworkStatsUploader();
22 // Collects and reports various network stats to external servers.
23 void CollectAndReportNetworkStats();
25 private:
26 // The TCP/UDP echo server to collect network connectivity stats.
27 std::string network_stats_server_;
29 DISALLOW_COPY_AND_ASSIGN(NetworkStatsUploader);
32 #endif // CHROME_BROWSER_METRICS_NETWORK_STATS_UPLOADER_H_