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

Side by Side Diff: ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698