OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DIAGNOSTICS_DIAGNOSTICS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_CONTROLLER_H_ |
6 #define CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_CONTROLLER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Clears any results that have accumulated. After calling this, do not call | 40 // Clears any results that have accumulated. After calling this, do not call |
41 // GetResults until after Run is called again. | 41 // GetResults until after Run is called again. |
42 void ClearResults(); | 42 void ClearResults(); |
43 | 43 |
44 // Records UMA statistics indicating that a regular Chrome startup happened, | 44 // Records UMA statistics indicating that a regular Chrome startup happened, |
45 // with no diagnostics or recovery being run. This is necessary to provide a | 45 // with no diagnostics or recovery being run. This is necessary to provide a |
46 // denominator for the diagnostics metrics. | 46 // denominator for the diagnostics metrics. |
47 void RecordRegularStartup(); | 47 void RecordRegularStartup(); |
48 | 48 |
49 private: | 49 private: |
50 friend struct DefaultSingletonTraits<DiagnosticsController>; | 50 friend struct base::DefaultSingletonTraits<DiagnosticsController>; |
51 | 51 |
52 DiagnosticsController(); | 52 DiagnosticsController(); |
53 ~DiagnosticsController(); | 53 ~DiagnosticsController(); |
54 | 54 |
55 scoped_ptr<DiagnosticsModel> model_; | 55 scoped_ptr<DiagnosticsModel> model_; |
56 DiagnosticsWriter* writer_; | 56 DiagnosticsWriter* writer_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(DiagnosticsController); | 58 DISALLOW_COPY_AND_ASSIGN(DiagnosticsController); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace diagnostics | 61 } // namespace diagnostics |
62 | 62 |
63 #endif // CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_CONTROLLER_H_ | 63 #endif // CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_CONTROLLER_H_ |
OLD | NEW |