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

Side by Side Diff: media/base/android/media_player_listener.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 (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 #include "media/base/android/media_player_listener.h" 5 #include "media/base/android/media_player_listener.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "jni/MediaPlayerListener_jni.h" 12 #include "jni/MediaPlayerListener_jni.h"
13 #include "media/base/android/media_player_android.h" 13 #include "media/base/android/media_player_android.h"
14 14
15 using base::android::AttachCurrentThread; 15 using base::android::AttachCurrentThread;
16 using base::android::CheckException; 16 using base::android::CheckException;
17 using base::android::JavaParamRef;
17 using base::android::ScopedJavaLocalRef; 18 using base::android::ScopedJavaLocalRef;
18 19
19 namespace media { 20 namespace media {
20 21
21 MediaPlayerListener::MediaPlayerListener( 22 MediaPlayerListener::MediaPlayerListener(
22 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 23 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
23 base::WeakPtr<MediaPlayerAndroid> media_player) 24 base::WeakPtr<MediaPlayerAndroid> media_player)
24 : task_runner_(task_runner), 25 : task_runner_(task_runner),
25 media_player_(media_player) { 26 media_player_(media_player) {
26 DCHECK(task_runner_.get()); 27 DCHECK(task_runner_.get());
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const JavaParamRef<jobject>& /* obj */) { 96 const JavaParamRef<jobject>& /* obj */) {
96 task_runner_->PostTask(FROM_HERE, base::Bind( 97 task_runner_->PostTask(FROM_HERE, base::Bind(
97 &MediaPlayerAndroid::OnMediaInterrupted, media_player_)); 98 &MediaPlayerAndroid::OnMediaInterrupted, media_player_));
98 } 99 }
99 100
100 bool MediaPlayerListener::RegisterMediaPlayerListener(JNIEnv* env) { 101 bool MediaPlayerListener::RegisterMediaPlayerListener(JNIEnv* env) {
101 return RegisterNativesImpl(env); 102 return RegisterNativesImpl(env);
102 } 103 }
103 104
104 } // namespace media 105 } // namespace media
OLDNEW
« no previous file with comments | « media/base/android/media_player_bridge.cc ('k') | media/capture/content/android/screen_capture_machine_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698