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

Side by Side Diff: chrome/browser/metrics/metrics_service.h

Issue 9474041: Upload UMA data using protocol buffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix crash in test Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Chrome OS hardware class (e.g., hardware qualification ID). This 333 // Chrome OS hardware class (e.g., hardware qualification ID). This
334 // class identifies the configured system components such as CPU, 334 // class identifies the configured system components such as CPU,
335 // WiFi adapter, etc. For non Chrome OS hosts, this will be an 335 // WiFi adapter, etc. For non Chrome OS hosts, this will be an
336 // empty string. 336 // empty string.
337 std::string hardware_class_; 337 std::string hardware_class_;
338 338
339 // The list of plugins which was retrieved on the file thread. 339 // The list of plugins which was retrieved on the file thread.
340 std::vector<webkit::WebPluginInfo> plugins_; 340 std::vector<webkit::WebPluginInfo> plugins_;
341 341
342 // The outstanding transmission appears as a URL Fetch operation. 342 // The outstanding transmission appears as a URL Fetch operation.
343 scoped_ptr<content::URLFetcher> current_fetch_; 343 scoped_ptr<content::URLFetcher> current_fetch_xml_;
344 scoped_ptr<content::URLFetcher> current_fetch_proto_;
344 345
345 // The URL for the metrics server. 346 // Cached responses from the XML request while we wait for a response to the
346 std::wstring server_url_; 347 // protubuf request.
348 int response_code_;
349 std::string response_status_;
350 std::string response_data_;
351
352 // The URLs for the XML and protobuf metrics servers.
353 string16 server_url_xml_;
354 string16 server_url_proto_;
347 355
348 // The TCP/UDP echo server to collect network connectivity stats. 356 // The TCP/UDP echo server to collect network connectivity stats.
349 std::string network_stats_server_; 357 std::string network_stats_server_;
350 358
351 // The IOThread for accessing global HostResolver to resolve 359 // The IOThread for accessing global HostResolver to resolve
352 // network_stats_server_ host. |io_thread_| is accessed on IO thread and it is 360 // network_stats_server_ host. |io_thread_| is accessed on IO thread and it is
353 // safe to access it on IO thread. 361 // safe to access it on IO thread.
354 IOThread* io_thread_; 362 IOThread* io_thread_;
355 363
356 // The identifier that's sent to the server with the log reports. 364 // The identifier that's sent to the server with the log reports.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 friend class InstantFieldTrial; 425 friend class InstantFieldTrial;
418 friend bool prerender::IsOmniboxEnabled(Profile* profile); 426 friend bool prerender::IsOmniboxEnabled(Profile* profile);
419 427
420 // Returns true if prefs::kMetricsReportingEnabled is set. 428 // Returns true if prefs::kMetricsReportingEnabled is set.
421 static bool IsMetricsReportingEnabled(); 429 static bool IsMetricsReportingEnabled();
422 430
423 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 431 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
424 }; 432 };
425 433
426 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 434 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698