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

Side by Side Diff: content/browser/media/android/browser_media_player_manager.h

Issue 135863004: Downloads and passes the poster image to Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Anton & Aaron's comments Created 6 years, 10 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_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void OnInitialize( 128 virtual void OnInitialize(
129 MediaPlayerHostMsg_Initialize_Type type, 129 MediaPlayerHostMsg_Initialize_Type type,
130 int player_id, 130 int player_id,
131 const GURL& url, 131 const GURL& url,
132 const GURL& first_party_for_cookies, 132 const GURL& first_party_for_cookies,
133 int demuxer_client_id); 133 int demuxer_client_id);
134 virtual void OnStart(int player_id); 134 virtual void OnStart(int player_id);
135 virtual void OnSeek(int player_id, const base::TimeDelta& time); 135 virtual void OnSeek(int player_id, const base::TimeDelta& time);
136 virtual void OnPause(int player_id, bool is_media_related_action); 136 virtual void OnPause(int player_id, bool is_media_related_action);
137 virtual void OnSetVolume(int player_id, double volume); 137 virtual void OnSetVolume(int player_id, double volume);
138 virtual void OnSetPoster(int player_id, const GURL& poster);
138 virtual void OnReleaseResources(int player_id); 139 virtual void OnReleaseResources(int player_id);
139 virtual void OnDestroyPlayer(int player_id); 140 virtual void OnDestroyPlayer(int player_id);
140 void OnInitializeCDM(int media_keys_id, 141 void OnInitializeCDM(int media_keys_id,
141 const std::vector<uint8>& uuid, 142 const std::vector<uint8>& uuid,
142 const GURL& frame_url); 143 const GURL& frame_url);
143 void OnCreateSession(int media_keys_id, 144 void OnCreateSession(int media_keys_id,
144 uint32 session_id, 145 uint32 session_id,
145 MediaKeysHostMsg_CreateSession_Type type, 146 MediaKeysHostMsg_CreateSession_Type type,
146 const std::vector<uint8>& init_data); 147 const std::vector<uint8>& init_data);
147 void OnUpdateSession(int media_keys_id, 148 void OnUpdateSession(int media_keys_id,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; 238 scoped_ptr<media::MediaResourceGetter> media_resource_getter_;
238 239
239 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; 240 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_;
240 241
241 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); 242 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager);
242 }; 243 };
243 244
244 } // namespace content 245 } // namespace content
245 246
246 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 247 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698