OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ |
6 #define CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ | 6 #define CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/chrome_browser_main_extra_parts.h" | 11 #include "chrome/browser/chrome_browser_main_extra_parts.h" |
12 | 12 |
13 class ChromeBrowserMainExtraPartsMetricsMac; | |
13 class ChromeBrowserMainParts; | 14 class ChromeBrowserMainParts; |
14 | 15 |
15 namespace chrome { | 16 namespace chrome { |
16 void AddMetricsExtraParts(ChromeBrowserMainParts* main_parts); | 17 void AddMetricsExtraParts(ChromeBrowserMainParts* main_parts); |
17 } | 18 } |
18 | 19 |
19 class ChromeBrowserMainExtraPartsMetrics : public ChromeBrowserMainExtraParts { | 20 class ChromeBrowserMainExtraPartsMetrics : public ChromeBrowserMainExtraParts { |
20 public: | 21 public: |
21 ChromeBrowserMainExtraPartsMetrics(); | 22 ChromeBrowserMainExtraPartsMetrics(); |
22 virtual ~ChromeBrowserMainExtraPartsMetrics(); | 23 virtual ~ChromeBrowserMainExtraPartsMetrics(); |
23 | 24 |
24 // Overridden from ChromeBrowserMainExtraParts: | 25 // Overridden from ChromeBrowserMainExtraParts: |
25 virtual void PreProfileInit() OVERRIDE; | 26 virtual void PreProfileInit() OVERRIDE; |
26 virtual void PreBrowserStart() OVERRIDE; | 27 virtual void PreBrowserStart() OVERRIDE; |
27 virtual void PostBrowserStart() OVERRIDE; | 28 virtual void PostBrowserStart() OVERRIDE; |
28 | 29 |
29 private: | 30 private: |
31 #if defined(OS_MACOSX) && !defined(OS_IOS) | |
32 // This member records OSX specific metrics. | |
33 base::scoped_ptr<ChromeBrowserMainExtraPartsMetricsMac> | |
Robert Sesek
2014/10/08 19:25:20
I think this could be an OS_MACOSX-specific method
erikchen
2014/10/08 22:49:19
I removed all of the ObjC and OSX specific code fr
| |
34 extra_parts_metrics_mac_; | |
35 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | |
36 | |
30 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsMetrics); | 37 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsMetrics); |
31 }; | 38 }; |
32 | 39 |
33 #endif // CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ | 40 #endif // CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ |
OLD | NEW |