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

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

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Created 4 years, 1 month 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Destroys the player in the browser process 75 // Destroys the player in the browser process
76 void DestroyPlayer(int player_id) override; 76 void DestroyPlayer(int player_id) override;
77 77
78 // Requests remote playback if possible 78 // Requests remote playback if possible
79 void RequestRemotePlayback(int player_id) override; 79 void RequestRemotePlayback(int player_id) override;
80 80
81 // Requests control of remote playback 81 // Requests control of remote playback
82 void RequestRemotePlaybackControl(int player_id) override; 82 void RequestRemotePlaybackControl(int player_id) override;
83 83
84 // Requests stopping remote playback
85 void RequestRemotePlaybackStop(int player_id) override;
86
84 // Requests the player to enter fullscreen. 87 // Requests the player to enter fullscreen.
85 void EnterFullscreen(int player_id); 88 void EnterFullscreen(int player_id);
86 89
87 // Registers and unregisters a WebMediaPlayerAndroid object. 90 // Registers and unregisters a WebMediaPlayerAndroid object.
88 int RegisterMediaPlayer(media::RendererMediaPlayerInterface* player) override; 91 int RegisterMediaPlayer(media::RendererMediaPlayerInterface* player) override;
89 void UnregisterMediaPlayer(int player_id) override; 92 void UnregisterMediaPlayer(int player_id) override;
90 93
91 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. 94 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|.
92 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id); 95 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id);
93 96
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 std::map<int, media::RendererMediaPlayerInterface*> media_players_; 130 std::map<int, media::RendererMediaPlayerInterface*> media_players_;
128 131
129 int next_media_player_id_; 132 int next_media_player_id_;
130 133
131 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); 134 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager);
132 }; 135 };
133 136
134 } // namespace content 137 } // namespace content
135 138
136 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 139 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698