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

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

Issue 339613002: Revert of Support casting for embedded YT videos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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_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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "content/common/media/media_player_messages_enums_android.h" 13 #include "content/common/media/media_player_messages_enums_android.h"
14 #include "content/public/renderer/render_frame_observer.h" 14 #include "content/public/renderer/render_frame_observer.h"
15 #include "media/base/android/media_player_android.h" 15 #include "media/base/android/media_player_android.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace blink { 18 namespace blink {
19 class WebFrame; 19 class WebFrame;
20 } 20 }
21 21
22 namespace gfx { 22 namespace gfx {
23 class RectF; 23 class RectF;
24 } 24 }
25 25
26 struct MediaPlayerHostMsg_Initialize_Params; 26 namespace content {
27 27
28 namespace content {
29 class WebMediaPlayerAndroid; 28 class WebMediaPlayerAndroid;
30 29
31 // Class for managing all the WebMediaPlayerAndroid objects in the same 30 // Class for managing all the WebMediaPlayerAndroid objects in the same
32 // RenderFrame. 31 // RenderFrame.
33 class RendererMediaPlayerManager : public RenderFrameObserver { 32 class RendererMediaPlayerManager : public RenderFrameObserver {
34 public: 33 public:
35 // Constructs a RendererMediaPlayerManager object for the |render_frame|. 34 // Constructs a RendererMediaPlayerManager object for the |render_frame|.
36 explicit RendererMediaPlayerManager(RenderFrame* render_frame); 35 explicit RendererMediaPlayerManager(RenderFrame* render_frame);
37 virtual ~RendererMediaPlayerManager(); 36 virtual ~RendererMediaPlayerManager();
38 37
39 // RenderFrameObserver overrides. 38 // RenderFrameObserver overrides.
40 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
41 40
42 // Initializes a MediaPlayerAndroid object in browser process. 41 // Initializes a MediaPlayerAndroid object in browser process.
43 void Initialize(MediaPlayerHostMsg_Initialize_Type type, 42 void Initialize(MediaPlayerHostMsg_Initialize_Type type,
44 int player_id, 43 int player_id,
45 const GURL& url, 44 const GURL& url,
46 const GURL& first_party_for_cookies, 45 const GURL& first_party_for_cookies,
47 int demuxer_client_id, 46 int demuxer_client_id);
48 const GURL& frame_url);
49 47
50 // Starts the player. 48 // Starts the player.
51 void Start(int player_id); 49 void Start(int player_id);
52 50
53 // Pauses the player. 51 // Pauses the player.
54 // is_media_related_action should be true if this pause is coming from an 52 // is_media_related_action should be true if this pause is coming from an
55 // an action that explicitly pauses the video (user pressing pause, JS, etc.) 53 // an action that explicitly pauses the video (user pressing pause, JS, etc.)
56 // Otherwise it should be false if Pause is being called due to other reasons 54 // Otherwise it should be false if Pause is being called due to other reasons
57 // (cleanup, freeing resources, etc.) 55 // (cleanup, freeing resources, etc.)
58 void Pause(int player_id, bool is_media_related_action); 56 void Pause(int player_id, bool is_media_related_action);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 160
163 // WebFrame of pending fullscreen request. 161 // WebFrame of pending fullscreen request.
164 blink::WebFrame* pending_fullscreen_frame_; 162 blink::WebFrame* pending_fullscreen_frame_;
165 163
166 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); 164 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager);
167 }; 165 };
168 166
169 } // namespace content 167 } // namespace content
170 168
171 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 169 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698