| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 bool OnMessageReceived(const IPC::Message& msg) override; | 40 bool OnMessageReceived(const IPC::Message& msg) override; |
| 41 void WasHidden() override; | 41 void WasHidden() override; |
| 42 | 42 |
| 43 // Initializes a MediaPlayerAndroid object in browser process. | 43 // Initializes a MediaPlayerAndroid object in browser process. |
| 44 void Initialize(MediaPlayerHostMsg_Initialize_Type type, | 44 void Initialize(MediaPlayerHostMsg_Initialize_Type type, |
| 45 int player_id, | 45 int player_id, |
| 46 const GURL& url, | 46 const GURL& url, |
| 47 const GURL& first_party_for_cookies, | 47 const GURL& first_party_for_cookies, |
| 48 int demuxer_client_id, | 48 int demuxer_client_id, |
| 49 const GURL& frame_url, | 49 const GURL& frame_url, |
| 50 bool allow_credentials); | 50 bool allow_credentials, |
| 51 int session_id); |
| 51 | 52 |
| 52 // Starts the player. | 53 // Starts the player. |
| 53 void Start(int player_id); | 54 void Start(int player_id); |
| 54 | 55 |
| 55 // Pauses the player. | 56 // Pauses the player. |
| 56 // is_media_related_action should be true if this pause is coming from an | 57 // is_media_related_action should be true if this pause is coming from an |
| 57 // an action that explicitly pauses the video (user pressing pause, JS, etc.) | 58 // an action that explicitly pauses the video (user pressing pause, JS, etc.) |
| 58 // Otherwise it should be false if Pause is being called due to other reasons | 59 // Otherwise it should be false if Pause is being called due to other reasons |
| 59 // (cleanup, freeing resources, etc.) | 60 // (cleanup, freeing resources, etc.) |
| 60 void Pause(int player_id, bool is_media_related_action); | 61 void Pause(int player_id, bool is_media_related_action); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 std::map<int, WebMediaPlayerAndroid*> media_players_; | 152 std::map<int, WebMediaPlayerAndroid*> media_players_; |
| 152 | 153 |
| 153 int next_media_player_id_; | 154 int next_media_player_id_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 156 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace content | 159 } // namespace content |
| 159 | 160 |
| 160 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 161 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |