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

Side by Side Diff: media/base/android/media_player_bridge.cc

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
« no previous file with comments | « media/base/android/media_player_bridge.h ('k') | media/base/android/media_source_player.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "media/base/android/media_player_bridge.h" 5 #include "media/base/android/media_player_bridge.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 15 matching lines...) Expand all
26 namespace media { 26 namespace media {
27 27
28 MediaPlayerBridge::MediaPlayerBridge( 28 MediaPlayerBridge::MediaPlayerBridge(
29 int player_id, 29 int player_id,
30 const GURL& url, 30 const GURL& url,
31 const GURL& first_party_for_cookies, 31 const GURL& first_party_for_cookies,
32 const std::string& user_agent, 32 const std::string& user_agent,
33 bool hide_url_log, 33 bool hide_url_log,
34 MediaPlayerManager* manager, 34 MediaPlayerManager* manager,
35 const RequestMediaResourcesCB& request_media_resources_cb, 35 const RequestMediaResourcesCB& request_media_resources_cb,
36 const ReleaseMediaResourcesCB& release_media_resources_cb, 36 const ReleaseMediaResourcesCB& release_media_resources_cb)
37 const GURL& frame_url)
38 : MediaPlayerAndroid(player_id, 37 : MediaPlayerAndroid(player_id,
39 manager, 38 manager,
40 request_media_resources_cb, 39 request_media_resources_cb,
41 release_media_resources_cb, 40 release_media_resources_cb),
42 frame_url),
43 prepared_(false), 41 prepared_(false),
44 pending_play_(false), 42 pending_play_(false),
45 url_(url), 43 url_(url),
46 first_party_for_cookies_(first_party_for_cookies), 44 first_party_for_cookies_(first_party_for_cookies),
47 user_agent_(user_agent), 45 user_agent_(user_agent),
48 hide_url_log_(hide_url_log), 46 hide_url_log_(hide_url_log),
49 width_(0), 47 width_(0),
50 height_(0), 48 height_(0),
51 can_pause_(true), 49 can_pause_(true),
52 can_seek_forward_(true), 50 can_seek_forward_(true),
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 479
482 GURL MediaPlayerBridge::GetFirstPartyForCookies() { 480 GURL MediaPlayerBridge::GetFirstPartyForCookies() {
483 return first_party_for_cookies_; 481 return first_party_for_cookies_;
484 } 482 }
485 483
486 bool MediaPlayerBridge::IsSurfaceInUse() const { 484 bool MediaPlayerBridge::IsSurfaceInUse() const {
487 return is_surface_in_use_; 485 return is_surface_in_use_;
488 } 486 }
489 487
490 } // namespace media 488 } // namespace media
OLDNEW
« no previous file with comments | « media/base/android/media_player_bridge.h ('k') | media/base/android/media_source_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698