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

Side by Side Diff: content/renderer/media/android/renderer_media_player_manager.h

Issue 2338223003: Unassociating MediaSession from media players (in blink & content) (Closed)
Patch Set: fixed tests Created 4 years, 2 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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool OnMessageReceived(const IPC::Message& msg) override; 42 bool OnMessageReceived(const IPC::Message& msg) override;
43 43
44 // Initializes a MediaPlayerAndroid object in browser process. 44 // Initializes a MediaPlayerAndroid object in browser process.
45 void Initialize(MediaPlayerHostMsg_Initialize_Type type, 45 void Initialize(MediaPlayerHostMsg_Initialize_Type type,
46 int player_id, 46 int player_id,
47 const GURL& url, 47 const GURL& url,
48 const GURL& first_party_for_cookies, 48 const GURL& first_party_for_cookies,
49 int demuxer_client_id, 49 int demuxer_client_id,
50 const GURL& frame_url, 50 const GURL& frame_url,
51 bool allow_credentials, 51 bool allow_credentials,
52 int delegate_id, 52 int delegate_id) override;
53 int media_session_id) override;
54 53
55 // Starts the player. 54 // Starts the player.
56 void Start(int player_id) override; 55 void Start(int player_id) override;
57 56
58 // Pauses the player. 57 // Pauses the player.
59 // is_media_related_action should be true if this pause is coming from an 58 // is_media_related_action should be true if this pause is coming from an
60 // an action that explicitly pauses the video (user pressing pause, JS, etc.) 59 // an action that explicitly pauses the video (user pressing pause, JS, etc.)
61 // Otherwise it should be false if Pause is being called due to other reasons 60 // Otherwise it should be false if Pause is being called due to other reasons
62 // (cleanup, freeing resources, etc.) 61 // (cleanup, freeing resources, etc.)
63 void Pause(int player_id, bool is_media_related_action) override; 62 void Pause(int player_id, bool is_media_related_action) override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 std::map<int, media::RendererMediaPlayerInterface*> media_players_; 134 std::map<int, media::RendererMediaPlayerInterface*> media_players_;
136 135
137 int next_media_player_id_; 136 int next_media_player_id_;
138 137
139 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); 138 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager);
140 }; 139 };
141 140
142 } // namespace content 141 } // namespace content
143 142
144 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 143 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/media/media_player_messages_android.h ('k') | content/renderer/media/android/renderer_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698