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

Side by Side Diff: chrome/browser/chromeos/external_metrics.h

Issue 6077013: Add support for collecting non-Chrome crash stats in Chrome OS (Closed) Base URL: svn://svn.chromium.org/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
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 #ifndef CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Registers all user actions external to the browser. 51 // Registers all user actions external to the browser.
52 void InitializeUserActions(); 52 void InitializeUserActions();
53 53
54 // Passes an action event to the UMA service on the UI thread. 54 // Passes an action event to the UMA service on the UI thread.
55 void RecordActionUI(std::string action_string); 55 void RecordActionUI(std::string action_string);
56 56
57 // Passes an action event to the UMA service. 57 // Passes an action event to the UMA service.
58 void RecordAction(const char* action_name); 58 void RecordAction(const char* action_name);
59 59
60 // Records an external crash of the given string description to
61 // UMA service on the UI thread.
62 void RecordCrashUI(const std::string &action_string);
petkov 2011/01/06 18:50:36 I think they use */& to the left (std::string&) in
kmixter1 2011/01/14 00:07:02 Done.
63
64 // Records an external crash of the given string description.
65 void RecordCrash(const std::string &crash_kind);
66
60 // Passes an histogram event to the UMA service. |histogram_data| is in the 67 // Passes an histogram event to the UMA service. |histogram_data| is in the
61 // form <histogram-name> <sample> <min> <max> <buckets_count>. 68 // form <histogram-name> <sample> <min> <max> <buckets_count>.
62 void RecordHistogram(const char* histogram_data); 69 void RecordHistogram(const char* histogram_data);
63 70
64 // Passes a linear histogram event to the UMA service. |histogram_data| is 71 // Passes a linear histogram event to the UMA service. |histogram_data| is
65 // in the form <histogram-name> <sample> <max>. 72 // in the form <histogram-name> <sample> <max>.
66 void RecordLinearHistogram(const char* histogram_data); 73 void RecordLinearHistogram(const char* histogram_data);
67 74
68 // Collects external events from metrics log file. This is run at periodic 75 // Collects external events from metrics log file. This is run at periodic
69 // intervals. 76 // intervals.
(...skipping 10 matching lines...) Expand all
80 87
81 // Used for testing only. 88 // Used for testing only.
82 RecorderType test_recorder_; 89 RecorderType test_recorder_;
83 FilePath test_path_; 90 FilePath test_path_;
84 DISALLOW_COPY_AND_ASSIGN(ExternalMetrics); 91 DISALLOW_COPY_AND_ASSIGN(ExternalMetrics);
85 }; 92 };
86 93
87 } // namespace chromeos 94 } // namespace chromeos
88 95
89 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/external_metrics.cc » ('j') | chrome/browser/chromeos/external_metrics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698