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_MANAGER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/time/time.h" | 8 #include "base/time/time.h" |
10 #include "media/base/android/demuxer_stream_player_params.h" | 9 #include "media/base/android/demuxer_stream_player_params.h" |
11 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
12 | 11 |
13 namespace media { | 12 namespace media { |
14 | 13 |
15 class MediaPlayerAndroid; | 14 class MediaPlayerAndroid; |
16 class MediaResourceGetter; | 15 class MediaResourceGetter; |
17 class MediaUrlInterceptor; | 16 class MediaUrlInterceptor; |
18 | 17 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Called by the player to request the playback for given duration. The | 75 // Called by the player to request the playback for given duration. The |
77 // manager should use this opportunity to check if the current context is | 76 // manager should use this opportunity to check if the current context is |
78 // appropriate for a media to play. | 77 // appropriate for a media to play. |
79 // Returns whether the request was granted. | 78 // Returns whether the request was granted. |
80 virtual bool RequestPlay(int player_id, base::TimeDelta duration) = 0; | 79 virtual bool RequestPlay(int player_id, base::TimeDelta duration) = 0; |
81 }; | 80 }; |
82 | 81 |
83 } // namespace media | 82 } // namespace media |
84 | 83 |
85 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 84 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |