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

Side by Side Diff: chrome_frame/crash_reporting/crash_metrics.h

Issue 5986012: Move thread local stuff from base to base/threading and consistently use the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome_frame/chrome_active_document.cc ('k') | chrome_frame/metrics_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_FRAME_CRASH_REPORTING_CRASH_METRICS_H_ 8 #ifndef CHROME_FRAME_CRASH_REPORTING_CRASH_METRICS_H_
9 #define CHROME_FRAME_CRASH_REPORTING_CRASH_METRICS_H_ 9 #define CHROME_FRAME_CRASH_REPORTING_CRASH_METRICS_H_
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/thread_local.h" 13 #include "base/threading/thread_local.h"
14 14
15 // This class provides functionality to track counters like successful page 15 // This class provides functionality to track counters like successful page
16 // loads in the host browser, total number of crashes, page loads in chrome 16 // loads in the host browser, total number of crashes, page loads in chrome
17 // frame. 17 // frame.
18 class CrashMetricsReporter { 18 class CrashMetricsReporter {
19 public: 19 public:
20 enum Metric { 20 enum Metric {
21 NAVIGATION_COUNT, 21 NAVIGATION_COUNT,
22 CRASH_COUNT, 22 CRASH_COUNT,
23 CHROME_FRAME_NAVIGATION_COUNT, 23 CHROME_FRAME_NAVIGATION_COUNT,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Indicates whether the crash metrics reporter instance is active. 57 // Indicates whether the crash metrics reporter instance is active.
58 bool active_; 58 bool active_;
59 59
60 static wchar_t* g_metric_names[LAST_METRIC]; 60 static wchar_t* g_metric_names[LAST_METRIC];
61 61
62 DISALLOW_COPY_AND_ASSIGN(CrashMetricsReporter); 62 DISALLOW_COPY_AND_ASSIGN(CrashMetricsReporter);
63 }; 63 };
64 64
65 #endif // CHROME_FRAME_CRASH_REPORTING_CRASH_METRICS_H_ 65 #endif // CHROME_FRAME_CRASH_REPORTING_CRASH_METRICS_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_active_document.cc ('k') | chrome_frame/metrics_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698