| 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 CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_UMA_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_UMA_HELPER_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_UMA_HELPER_H_ | 6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_UMA_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/time/clock.h" | 9 #include "base/time/clock.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class Clock; | 13 class Clock; |
| 14 } // base namespace | 14 } // base namespace |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 43 void SetClockForTest(scoped_ptr<base::Clock> testing_clock); | 43 void SetClockForTest(scoped_ptr<base::Clock> testing_clock); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 base::TimeDelta total_active_time_; | 46 base::TimeDelta total_active_time_; |
| 47 base::Time current_active_time_; | 47 base::Time current_active_time_; |
| 48 scoped_ptr<base::Clock> clock_; | 48 scoped_ptr<base::Clock> clock_; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace content | 51 } // namespace content |
| 52 | 52 |
| 53 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_UMA_HELPER_H_ | 53 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_UMA_HELPER_H_ |
| OLD | NEW |