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

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

Issue 468005: Improve reporting of subprocess crashes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 10
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // Reads, increments and then sets the specified integer preference. 332 // Reads, increments and then sets the specified integer preference.
333 void IncrementPrefValue(const wchar_t* path); 333 void IncrementPrefValue(const wchar_t* path);
334 334
335 // Reads, increments and then sets the specified long preference that is 335 // Reads, increments and then sets the specified long preference that is
336 // stored as a string. 336 // stored as a string.
337 void IncrementLongPrefsValue(const wchar_t* path); 337 void IncrementLongPrefsValue(const wchar_t* path);
338 338
339 // Records a renderer process crash. 339 // Records a renderer process crash.
340 void LogRendererCrash(); 340 void LogRendererCrash();
341 341
342 // Records an extension renderer process crash.
343 void LogExtensionRendererCrash();
344
342 // Records a renderer process hang. 345 // Records a renderer process hang.
343 void LogRendererHang(); 346 void LogRendererHang();
344 347
345 // Set the value in preferences for the number of bookmarks and folders 348 // Set the value in preferences for the number of bookmarks and folders
346 // in node. The pref key for the number of bookmarks in num_bookmarks_key and 349 // in node. The pref key for the number of bookmarks in num_bookmarks_key and
347 // the pref key for number of folders in num_folders_key. 350 // the pref key for number of folders in num_folders_key.
348 void LogBookmarks(const BookmarkNode* node, 351 void LogBookmarks(const BookmarkNode* node,
349 const wchar_t* num_bookmarks_key, 352 const wchar_t* num_bookmarks_key,
350 const wchar_t* num_folders_key); 353 const wchar_t* num_folders_key);
351 354
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 scoped_refptr<chromeos::ExternalMetrics> external_metrics_; 511 scoped_refptr<chromeos::ExternalMetrics> external_metrics_;
509 #endif 512 #endif
510 513
511 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesAllZeroes); 514 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesAllZeroes);
512 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesCorrectly); 515 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesCorrectly);
513 FRIEND_TEST(MetricsServiceTest, ClientIdCorrectlyFormatted); 516 FRIEND_TEST(MetricsServiceTest, ClientIdCorrectlyFormatted);
514 DISALLOW_COPY_AND_ASSIGN(MetricsService); 517 DISALLOW_COPY_AND_ASSIGN(MetricsService);
515 }; 518 };
516 519
517 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 520 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698