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

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

Issue 9232071: Upload UMA data using protocol buffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // Chrome OS hardware class (e.g., hardware qualification ID). This 328 // Chrome OS hardware class (e.g., hardware qualification ID). This
329 // class identifies the configured system components such as CPU, 329 // class identifies the configured system components such as CPU,
330 // WiFi adapter, etc. For non Chrome OS hosts, this will be an 330 // WiFi adapter, etc. For non Chrome OS hosts, this will be an
331 // empty string. 331 // empty string.
332 std::string hardware_class_; 332 std::string hardware_class_;
333 333
334 // The list of plugins which was retrieved on the file thread. 334 // The list of plugins which was retrieved on the file thread.
335 std::vector<webkit::WebPluginInfo> plugins_; 335 std::vector<webkit::WebPluginInfo> plugins_;
336 336
337 // The outstanding transmission appears as a URL Fetch operation. 337 // The outstanding transmission appears as a URL Fetch operation.
338 scoped_ptr<content::URLFetcher> current_fetch_; 338 scoped_ptr<content::URLFetcher> current_fetch_xml_;
339 scoped_ptr<content::URLFetcher> current_fetch_proto_;
339 340
340 // The URL for the metrics server. 341 // Cached responses from the XML request while we wait for a response to the
341 std::wstring server_url_; 342 // protubuf request.
343 int response_code_;
344 std::string response_status_;
345 std::string response_data_;
346
347 // The URLs for the XML and protobuf metrics servers.
348 string16 server_url_xml_;
349 string16 server_url_proto_;
342 350
343 // The TCP/UDP echo server to collect network connectivity stats. 351 // The TCP/UDP echo server to collect network connectivity stats.
344 std::string network_stats_server_; 352 std::string network_stats_server_;
345 353
346 // The IOThread for accessing global HostResolver to resolve 354 // The IOThread for accessing global HostResolver to resolve
347 // network_stats_server_ host. |io_thread_| is accessed on IO thread and it is 355 // network_stats_server_ host. |io_thread_| is accessed on IO thread and it is
348 // safe to access it on IO thread. 356 // safe to access it on IO thread.
349 IOThread* io_thread_; 357 IOThread* io_thread_;
350 358
351 // The identifier that's sent to the server with the log reports. 359 // The identifier that's sent to the server with the log reports.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 friend class InstantFieldTrial; 415 friend class InstantFieldTrial;
408 friend bool prerender::IsOmniboxEnabled(Profile* profile); 416 friend bool prerender::IsOmniboxEnabled(Profile* profile);
409 417
410 // Returns true if prefs::kMetricsReportingEnabled is set. 418 // Returns true if prefs::kMetricsReportingEnabled is set.
411 static bool IsMetricsReportingEnabled(); 419 static bool IsMetricsReportingEnabled();
412 420
413 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 421 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
414 }; 422 };
415 423
416 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 424 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698