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

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: Addressed Dongwon and Yuncheol's comments 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void DetachExternalVideoSurface(int player_id); 83 void DetachExternalVideoSurface(int player_id);
84 #endif 84 #endif
85 85
86 media::MediaPlayerAndroid* GetFullscreenPlayer(); 86 media::MediaPlayerAndroid* GetFullscreenPlayer();
87 media::MediaPlayerAndroid* GetPlayer(int player_id); 87 media::MediaPlayerAndroid* GetPlayer(int player_id);
88 88
89 private: 89 private:
90 // Message handlers. 90 // Message handlers.
91 void OnEnterFullscreen(int player_id); 91 void OnEnterFullscreen(int player_id);
92 void OnExitFullscreen(int player_id); 92 void OnExitFullscreen(int player_id);
93 void OnInitialize(int player_id, const GURL& url, 93 void OnInitialize(
94 bool is_media_source, 94 int player_id,
95 const GURL& first_party_for_cookies); 95 const GURL& url,
96 media::MediaPlayerAndroid::MediaSourceType media_source_type,
97 const GURL& first_party_for_cookies);
96 void OnStart(int player_id); 98 void OnStart(int player_id);
97 void OnSeek(int player_id, base::TimeDelta time); 99 void OnSeek(int player_id, base::TimeDelta time);
98 void OnPause(int player_id); 100 void OnPause(int player_id);
99 void OnReleaseResources(int player_id); 101 void OnReleaseResources(int player_id);
100 void OnDestroyPlayer(int player_id); 102 void OnDestroyPlayer(int player_id);
101 #if defined(GOOGLE_TV) 103 #if defined(GOOGLE_TV)
102 void OnNotifyExternalSurface( 104 void OnNotifyExternalSurface(
103 int player_id, bool is_request, const gfx::RectF& rect); 105 int player_id, bool is_request, const gfx::RectF& rect);
104 void OnDemuxerReady( 106 void OnDemuxerReady(
105 int player_id, 107 int player_id,
(...skipping 16 matching lines...) Expand all
122 124
123 // Object for retrieving resources media players. 125 // Object for retrieving resources media players.
124 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; 126 scoped_ptr<media::MediaResourceGetter> media_resource_getter_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); 128 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl);
127 }; 129 };
128 130
129 } // namespace content 131 } // namespace content
130 132
131 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ 133 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698