OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_LISTENER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_LISTENER_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_LISTENER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_LISTENER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class SingleThreadTaskRunner; | 16 class SingleThreadTaskRunner; |
16 } | 17 } |
17 | 18 |
18 namespace media { | 19 namespace media { |
19 | 20 |
20 class MediaPlayerAndroid; | 21 class MediaPlayerAndroid; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 base::WeakPtr<MediaPlayerAndroid> media_player_; | 70 base::WeakPtr<MediaPlayerAndroid> media_player_; |
70 | 71 |
71 base::android::ScopedJavaGlobalRef<jobject> j_media_player_listener_; | 72 base::android::ScopedJavaGlobalRef<jobject> j_media_player_listener_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(MediaPlayerListener); | 74 DISALLOW_COPY_AND_ASSIGN(MediaPlayerListener); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace media | 77 } // namespace media |
77 | 78 |
78 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_LISTENER_H_ | 79 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_LISTENER_H_ |
OLD | NEW |