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

Side by Side Diff: chrome/browser/media/android/remote/remote_media_player_manager.h

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Rebase, addressed comments 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void ReplaceRemotePlayerWithLocal(int player_id); 71 void ReplaceRemotePlayerWithLocal(int player_id);
72 72
73 // content::BrowserMediaPlayerManager overrides. 73 // content::BrowserMediaPlayerManager overrides.
74 void OnStart(int player_id) override; 74 void OnStart(int player_id) override;
75 void OnInitialize( 75 void OnInitialize(
76 const MediaPlayerHostMsg_Initialize_Params& media_player_params) override; 76 const MediaPlayerHostMsg_Initialize_Params& media_player_params) override;
77 void OnDestroyPlayer(int player_id) override; 77 void OnDestroyPlayer(int player_id) override;
78 void OnSuspendAndReleaseResources(int player_id) override; 78 void OnSuspendAndReleaseResources(int player_id) override;
79 void OnRequestRemotePlayback(int player_id) override; 79 void OnRequestRemotePlayback(int player_id) override;
80 void OnRequestRemotePlaybackControl(int player_id) override; 80 void OnRequestRemotePlaybackControl(int player_id) override;
81 void OnRequestRemotePlaybackStop(int player_id) override;
81 82
82 bool IsPlayingRemotely(int player_id) override; 83 bool IsPlayingRemotely(int player_id) override;
83 84
84 void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player) override; 85 void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player) override;
85 86
86 // Callback for when the download of poster image is done. 87 // Callback for when the download of poster image is done.
87 void DidDownloadPoster( 88 void DidDownloadPoster(
88 int player_id, 89 int player_id,
89 int id, 90 int id,
90 int http_status_code, 91 int http_status_code,
(...skipping 26 matching lines...) Expand all
117 std::unordered_map<int, GURL> poster_urls_; 118 std::unordered_map<int, GURL> poster_urls_;
118 119
119 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; 120 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); 122 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager);
122 }; 123 };
123 124
124 } // namespace remote_media 125 } // namespace remote_media
125 126
126 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 127 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698