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

Side by Side Diff: chrome/browser/diagnostics/diagnostics_controller.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/device/devtools_android_bridge.cc ('k') | chrome/browser/diagnostics/diagnostics_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698