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 #include "content/browser/media/android/media_session.h" | 5 #include "content/browser/media/android/media_session.h" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
8 #include "content/browser/media/android/media_session_observer.h" | 9 #include "content/browser/media/android/media_session_observer.h" |
9 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
10 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
11 #include "content/public/browser/web_contents_delegate.h" | 12 #include "content/public/browser/web_contents_delegate.h" |
12 #include "jni/MediaSession_jni.h" | 13 #include "jni/MediaSession_jni.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 using MediaSessionSuspendedSource = | 17 using MediaSessionSuspendedSource = |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 case State::SUSPENDED: | 281 case State::SUSPENDED: |
281 uma_helper_.OnSessionSuspended(); | 282 uma_helper_.OnSessionSuspended(); |
282 break; | 283 break; |
283 case State::INACTIVE: | 284 case State::INACTIVE: |
284 uma_helper_.OnSessionInactive(); | 285 uma_helper_.OnSessionInactive(); |
285 break; | 286 break; |
286 } | 287 } |
287 } | 288 } |
288 | 289 |
289 } // namespace content | 290 } // namespace content |
OLD | NEW |