| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_METRICS_MOBILE_SESSION_SHUTDOWN_METRICS_PROVIDER_H_ | 5 #ifndef IOS_CHROME_BROWSER_METRICS_MOBILE_SESSION_SHUTDOWN_METRICS_PROVIDER_H_ |
| 6 #define IOS_CHROME_BROWSER_METRICS_MOBILE_SESSION_SHUTDOWN_METRICS_PROVIDER_H_ | 6 #define IOS_CHROME_BROWSER_METRICS_MOBILE_SESSION_SHUTDOWN_METRICS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "components/metrics/metrics_provider.h" | 11 #include "components/metrics/metrics_provider.h" |
| 11 | 12 |
| 12 namespace metrics { | 13 namespace metrics { |
| 13 class MetricsService; | 14 class MetricsService; |
| 14 } | 15 } |
| 15 | 16 |
| 16 // Exposed for testing purposes only. | 17 // Exposed for testing purposes only. |
| 17 // Values of the UMA Stability.MobileSessionShutdownType histogram. | 18 // Values of the UMA Stability.MobileSessionShutdownType histogram. |
| 18 enum MobileSessionShutdownType { | 19 enum MobileSessionShutdownType { |
| 19 SHUTDOWN_IN_BACKGROUND = 0, | 20 SHUTDOWN_IN_BACKGROUND = 0, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 55 |
| 55 // Whether there was a memory warning shortly before last shutdown. | 56 // Whether there was a memory warning shortly before last shutdown. |
| 56 virtual bool ReceivedMemoryWarningBeforeLastShutdown(); | 57 virtual bool ReceivedMemoryWarningBeforeLastShutdown(); |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 metrics::MetricsService* metrics_service_; | 60 metrics::MetricsService* metrics_service_; |
| 60 DISALLOW_COPY_AND_ASSIGN(MobileSessionShutdownMetricsProvider); | 61 DISALLOW_COPY_AND_ASSIGN(MobileSessionShutdownMetricsProvider); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 #endif // IOS_CHROME_BROWSER_METRICS_MOBILE_SESSION_SHUTDOWN_METRICS_PROVIDER_H
_ | 64 #endif // IOS_CHROME_BROWSER_METRICS_MOBILE_SESSION_SHUTDOWN_METRICS_PROVIDER_H
_ |
| OLD | NEW |