| 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 CHROME_BROWSER_ANDROID_METRICS_UMA_SESSION_STATS_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_METRICS_UMA_SESSION_STATS_H_ |
| 6 #define CHROME_BROWSER_ANDROID_METRICS_UMA_SESSION_STATS_H_ | 6 #define CHROME_BROWSER_ANDROID_METRICS_UMA_SESSION_STATS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stdint.h> |
| 9 #include <string> | 10 #include <string> |
| 10 | 11 |
| 11 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
| 13 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 14 | 16 |
| 15 class UserActionRateCounter; | 17 class UserActionRateCounter; |
| 16 | 18 |
| 17 // The native part of java UmaSessionStats class. | 19 // The native part of java UmaSessionStats class. |
| 18 class UmaSessionStats { | 20 class UmaSessionStats { |
| 19 public: | 21 public: |
| 20 UmaSessionStats(); | 22 UmaSessionStats(); |
| 21 | 23 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 base::TimeTicks session_start_time_; | 41 base::TimeTicks session_start_time_; |
| 40 int active_session_count_; | 42 int active_session_count_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(UmaSessionStats); | 44 DISALLOW_COPY_AND_ASSIGN(UmaSessionStats); |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 // Registers the native methods through jni | 47 // Registers the native methods through jni |
| 46 bool RegisterUmaSessionStats(JNIEnv* env); | 48 bool RegisterUmaSessionStats(JNIEnv* env); |
| 47 | 49 |
| 48 #endif // CHROME_BROWSER_ANDROID_METRICS_UMA_SESSION_STATS_H_ | 50 #endif // CHROME_BROWSER_ANDROID_METRICS_UMA_SESSION_STATS_H_ |
| OLD | NEW |