| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "chrome/browser/extensions/extension_function.h" | 11 #include "extensions/browser/extension_function.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 class MetricsPrivateGetIsCrashReportingEnabledFunction | 15 class MetricsPrivateGetIsCrashReportingEnabledFunction |
| 16 : public SyncExtensionFunction { | 16 : public SyncExtensionFunction { |
| 17 public: | 17 public: |
| 18 DECLARE_EXTENSION_FUNCTION("metricsPrivate.getIsCrashReportingEnabled", | 18 DECLARE_EXTENSION_FUNCTION("metricsPrivate.getIsCrashReportingEnabled", |
| 19 METRICSPRIVATE_GETISCRASHRECORDINGENABLED) | 19 METRICSPRIVATE_GETISCRASHRECORDINGENABLED) |
| 20 | 20 |
| 21 protected: | 21 protected: |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 protected: | 170 protected: |
| 171 virtual ~MetricsPrivateRecordLongTimeFunction() {} | 171 virtual ~MetricsPrivateRecordLongTimeFunction() {} |
| 172 | 172 |
| 173 // ExtensionFunction: | 173 // ExtensionFunction: |
| 174 virtual bool RunImpl() OVERRIDE; | 174 virtual bool RunImpl() OVERRIDE; |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 } // namespace extensions | 177 } // namespace extensions |
| 178 | 178 |
| 179 #endif // CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ | 179 #endif // CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ |
| OLD | NEW |