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

Side by Side Diff: content/browser/android/media_player_manager_impl.h

Issue 14247018: Implement WebRTC in Chrome for TV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase & addressed comments from dwkang@ and ycheo@ Created 7 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void DetachExternalVideoSurface(int player_id); 81 void DetachExternalVideoSurface(int player_id);
82 #endif 82 #endif
83 83
84 media::MediaPlayerBridge* GetFullscreenPlayer(); 84 media::MediaPlayerBridge* GetFullscreenPlayer();
85 media::MediaPlayerBridge* GetPlayer(int player_id); 85 media::MediaPlayerBridge* GetPlayer(int player_id);
86 86
87 private: 87 private:
88 // Message handlers. 88 // Message handlers.
89 void OnEnterFullscreen(int player_id); 89 void OnEnterFullscreen(int player_id);
90 void OnExitFullscreen(int player_id); 90 void OnExitFullscreen(int player_id);
91 void OnInitialize(int player_id, const GURL& url, 91 void OnInitialize(int player_id,
92 bool is_media_source, 92 const GURL& url,
93 media::MediaPlayerBridge::MediaSource media_source,
93 const GURL& first_party_for_cookies); 94 const GURL& first_party_for_cookies);
94 void OnStart(int player_id); 95 void OnStart(int player_id);
95 void OnSeek(int player_id, base::TimeDelta time); 96 void OnSeek(int player_id, base::TimeDelta time);
96 void OnPause(int player_id); 97 void OnPause(int player_id);
97 void OnReleaseResources(int player_id); 98 void OnReleaseResources(int player_id);
98 void OnDestroyPlayer(int player_id); 99 void OnDestroyPlayer(int player_id);
99 #if defined(GOOGLE_TV) 100 #if defined(GOOGLE_TV)
100 void OnRequestExternalSurface(int player_id); 101 void OnRequestExternalSurface(int player_id);
101 void OnNotifyGeometryChange(int player_id, const gfx::RectF& rect); 102 void OnNotifyGeometryChange(int player_id, const gfx::RectF& rect);
102 void OnDemuxerReady( 103 void OnDemuxerReady(
(...skipping 17 matching lines...) Expand all
120 121
121 // Object for retrieving resources media players. 122 // Object for retrieving resources media players.
122 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; 123 scoped_ptr<media::MediaResourceGetter> media_resource_getter_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); 125 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl);
125 }; 126 };
126 127
127 } // namespace content 128 } // namespace content
128 129
129 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ 130 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698