OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_android.h" | 5 #include "media/base/android/media_player_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 listener_.reset(); | 91 listener_.reset(); |
92 } | 92 } |
93 | 93 |
94 void MediaPlayerAndroid::SetAudible(bool is_audible) { | 94 void MediaPlayerAndroid::SetAudible(bool is_audible) { |
95 if (is_audible_ != is_audible) { | 95 if (is_audible_ != is_audible) { |
96 is_audible_ = is_audible; | 96 is_audible_ = is_audible; |
97 manager_->OnAudibleStateChanged(player_id(), is_audible_); | 97 manager_->OnAudibleStateChanged(player_id(), is_audible_); |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 base::WeakPtr<MediaPlayerAndroid> | |
102 MediaPlayerAndroid::WeakPtrForUIThread() { | |
103 return weak_factory_.GetWeakPtr(); | |
qinmin
2015/05/19 19:26:26
nit: indent by 2
Tima Vaisburd
2015/05/20 05:19:59
Done.
| |
104 } | |
105 | |
101 } // namespace media | 106 } // namespace media |
OLD | NEW |