OLD | NEW |
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_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_METRICS_SERVICE_H_ |
9 #define CHROME_BROWSER_METRICS_SERVICE_H_ | 9 #define CHROME_BROWSER_METRICS_SERVICE_H_ |
10 | 10 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // Records a renderer process crash. | 313 // Records a renderer process crash. |
314 void LogRendererCrash(); | 314 void LogRendererCrash(); |
315 | 315 |
316 // Records a renderer process hang. | 316 // Records a renderer process hang. |
317 void LogRendererHang(); | 317 void LogRendererHang(); |
318 | 318 |
319 // Records the desktop security status of a renderer in the sandbox at | 319 // Records the desktop security status of a renderer in the sandbox at |
320 // creation time. | 320 // creation time. |
321 void LogRendererInSandbox(bool on_sandbox_desktop); | 321 void LogRendererInSandbox(bool on_sandbox_desktop); |
322 | 322 |
323 // Set the value in preferences for for the number of bookmarks and folders | 323 // Set the value in preferences for the number of bookmarks and folders |
324 // in node. The pref key for the number of bookmarks in num_bookmarks_key and | 324 // in node. The pref key for the number of bookmarks in num_bookmarks_key and |
325 // the pref key for number of folders in num_folders_key. | 325 // the pref key for number of folders in num_folders_key. |
326 void LogBookmarks(const BookmarkNode* node, | 326 void LogBookmarks(const BookmarkNode* node, |
327 const wchar_t* num_bookmarks_key, | 327 const wchar_t* num_bookmarks_key, |
328 const wchar_t* num_folders_key); | 328 const wchar_t* num_folders_key); |
329 | 329 |
330 // Sets preferences for the for the number of bookmarks in model. | 330 // Sets preferences for the number of bookmarks in model. |
331 void LogBookmarks(BookmarkModel* model); | 331 void LogBookmarks(BookmarkModel* model); |
332 | 332 |
333 // Records a child process related notification. These are recorded to an | 333 // Records a child process related notification. These are recorded to an |
334 // in-object buffer because these notifications are sent on page load, and we | 334 // in-object buffer because these notifications are sent on page load, and we |
335 // don't want to slow that down. | 335 // don't want to slow that down. |
336 void LogChildProcessChange(NotificationType type, | 336 void LogChildProcessChange(NotificationType type, |
337 const NotificationSource& source, | 337 const NotificationSource& source, |
338 const NotificationDetails& details); | 338 const NotificationDetails& details); |
339 | 339 |
340 // Logs keywords specific metrics. Keyword metrics are recorded in the | 340 // Logs keywords specific metrics. Keyword metrics are recorded in the |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // Indicate that a timer for sending the next log has already been queued. | 485 // Indicate that a timer for sending the next log has already been queued. |
486 bool timer_pending_; | 486 bool timer_pending_; |
487 | 487 |
488 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesAllZeroes); | 488 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesAllZeroes); |
489 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesCorrectly); | 489 FRIEND_TEST(MetricsServiceTest, ClientIdGeneratesCorrectly); |
490 FRIEND_TEST(MetricsServiceTest, ClientIdCorrectlyFormatted); | 490 FRIEND_TEST(MetricsServiceTest, ClientIdCorrectlyFormatted); |
491 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 491 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
492 }; | 492 }; |
493 | 493 |
494 #endif // CHROME_BROWSER_METRICS_SERVICE_H_ | 494 #endif // CHROME_BROWSER_METRICS_SERVICE_H_ |
OLD | NEW |