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 #include "content/browser/android/media_player_manager_android.h" | 5 #include "content/browser/android/media_player_manager_android.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/browser/android/cookie_getter_impl.h" | 8 #include "content/browser/android/cookie_getter_impl.h" |
9 #include "content/common/media/media_player_messages.h" | 9 #include "content/common/media/media_player_messages.h" |
10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
11 #include "content/public/browser/browser_thread.h" | |
12 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
13 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
14 | 13 |
15 using media::MediaPlayerBridge; | 14 using media::MediaPlayerBridge; |
16 | 15 |
17 // Threshold on the number of media players per renderer before we start | 16 // Threshold on the number of media players per renderer before we start |
18 // attempting to release inactive media players. | 17 // attempting to release inactive media players. |
19 static const int kMediaPlayerThreshold = 1; | 18 static const int kMediaPlayerThreshold = 1; |
20 | 19 |
21 namespace content { | 20 namespace content { |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 } | 292 } |
294 } | 293 } |
295 } | 294 } |
296 | 295 |
297 void MediaPlayerManagerAndroid::ReleaseMediaResources( | 296 void MediaPlayerManagerAndroid::ReleaseMediaResources( |
298 MediaPlayerBridge* player) { | 297 MediaPlayerBridge* player) { |
299 // Nothing needs to be done. | 298 // Nothing needs to be done. |
300 } | 299 } |
301 | 300 |
302 } // namespace content | 301 } // namespace content |
OLD | NEW |