OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file defines a service that collects information about the user | 5 // This file defines a service that collects information about the user |
6 // experience in order to help improve future versions of the app. | 6 // experience in order to help improve future versions of the app. |
7 | 7 |
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 // The list of plugins which was retrieved on the file thread. | 354 // The list of plugins which was retrieved on the file thread. |
355 std::vector<webkit::npapi::WebPluginInfo> plugins_; | 355 std::vector<webkit::npapi::WebPluginInfo> plugins_; |
356 | 356 |
357 // The outstanding transmission appears as a URL Fetch operation. | 357 // The outstanding transmission appears as a URL Fetch operation. |
358 scoped_ptr<URLFetcher> current_fetch_; | 358 scoped_ptr<URLFetcher> current_fetch_; |
359 | 359 |
360 // The URL for the metrics server. | 360 // The URL for the metrics server. |
361 std::wstring server_url_; | 361 std::wstring server_url_; |
362 | 362 |
| 363 // The TCP/UDP echo server to collect network connectivity stats. |
| 364 std::string network_stats_server_; |
| 365 |
363 // The identifier that's sent to the server with the log reports. | 366 // The identifier that's sent to the server with the log reports. |
364 std::string client_id_; | 367 std::string client_id_; |
365 | 368 |
366 // Whether the MetricsService object has received any notifications since | 369 // Whether the MetricsService object has received any notifications since |
367 // the last time a transmission was sent. | 370 // the last time a transmission was sent. |
368 bool idle_since_last_transmission_; | 371 bool idle_since_last_transmission_; |
369 | 372 |
370 // A number that identifies the how many times the app has been launched. | 373 // A number that identifies the how many times the app has been launched. |
371 int session_id_; | 374 int session_id_; |
372 | 375 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, CorruptSizeOfLogList); | 422 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, CorruptSizeOfLogList); |
420 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, CorruptChecksumOfLogList); | 423 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, CorruptChecksumOfLogList); |
421 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, ClientIdGeneratesAllZeroes); | 424 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, ClientIdGeneratesAllZeroes); |
422 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, ClientIdGeneratesCorrectly); | 425 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, ClientIdGeneratesCorrectly); |
423 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, ClientIdCorrectlyFormatted); | 426 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, ClientIdCorrectlyFormatted); |
424 | 427 |
425 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 428 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
426 }; | 429 }; |
427 | 430 |
428 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 431 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |