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

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

Issue 1641993003: Pass media session id over IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@possible-next-split
Patch Set: Enumify constant Created 4 years, 9 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) override; 52 int delegate_id,
53 int media_session_id) override;
53 54
54 // Starts the player. 55 // Starts the player.
55 void Start(int player_id) override; 56 void Start(int player_id) override;
56 57
57 // Pauses the player. 58 // Pauses the player.
58 // is_media_related_action should be true if this pause is coming from an 59 // is_media_related_action should be true if this pause is coming from an
59 // an action that explicitly pauses the video (user pressing pause, JS, etc.) 60 // an action that explicitly pauses the video (user pressing pause, JS, etc.)
60 // Otherwise it should be false if Pause is being called due to other reasons 61 // Otherwise it should be false if Pause is being called due to other reasons
61 // (cleanup, freeing resources, etc.) 62 // (cleanup, freeing resources, etc.)
62 void Pause(int player_id, bool is_media_related_action) override; 63 void Pause(int player_id, bool is_media_related_action) override;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 std::map<int, media::RendererMediaPlayerInterface*> media_players_; 148 std::map<int, media::RendererMediaPlayerInterface*> media_players_;
148 149
149 int next_media_player_id_; 150 int next_media_player_id_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); 152 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager);
152 }; 153 };
153 154
154 } // namespace content 155 } // namespace content
155 156
156 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 157 #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