| OLD | NEW |
| 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_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "media/base/demuxer_stream.h" | 28 #include "media/base/demuxer_stream.h" |
| 29 #include "media/base/eme_constants.h" | 29 #include "media/base/eme_constants.h" |
| 30 #include "media/base/media_keys.h" | 30 #include "media/base/media_keys.h" |
| 31 #include "media/base/time_delta_interpolator.h" | 31 #include "media/base/time_delta_interpolator.h" |
| 32 #include "media/blink/webmediaplayer_delegate.h" | 32 #include "media/blink/webmediaplayer_delegate.h" |
| 33 #include "media/blink/webmediaplayer_params.h" | 33 #include "media/blink/webmediaplayer_params.h" |
| 34 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 34 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
| 35 #include "third_party/WebKit/public/platform/WebSetSinkIdCallbacks.h" | 35 #include "third_party/WebKit/public/platform/WebSetSinkIdCallbacks.h" |
| 36 #include "third_party/WebKit/public/platform/WebSize.h" | 36 #include "third_party/WebKit/public/platform/WebSize.h" |
| 37 #include "third_party/WebKit/public/platform/WebURL.h" | 37 #include "third_party/WebKit/public/platform/WebURL.h" |
| 38 #include "third_party/skia/include/core/SkBitmap.h" | |
| 39 #include "ui/gfx/geometry/rect_f.h" | 38 #include "ui/gfx/geometry/rect_f.h" |
| 40 | 39 |
| 41 namespace base { | 40 namespace base { |
| 42 class SingleThreadTaskRunner; | 41 class SingleThreadTaskRunner; |
| 43 } | 42 } |
| 44 | 43 |
| 45 namespace blink { | 44 namespace blink { |
| 46 class WebContentDecryptionModule; | 45 class WebContentDecryptionModule; |
| 47 class WebContentDecryptionModuleResult; | 46 class WebContentDecryptionModuleResult; |
| 48 class WebFrame; | 47 class WebFrame; |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 // Non-owned pointer to the CdmContext. Updated in the constructor, | 472 // Non-owned pointer to the CdmContext. Updated in the constructor, |
| 474 // generateKeyRequest() or setContentDecryptionModule(). | 473 // generateKeyRequest() or setContentDecryptionModule(). |
| 475 media::CdmContext* cdm_context_; | 474 media::CdmContext* cdm_context_; |
| 476 | 475 |
| 477 // This is only Used by Clear Key key system implementation, where a renderer | 476 // This is only Used by Clear Key key system implementation, where a renderer |
| 478 // side CDM will be used. This is similar to WebMediaPlayerImpl. For other key | 477 // side CDM will be used. This is similar to WebMediaPlayerImpl. For other key |
| 479 // systems, a browser side CDM will be used and we set CDM by calling | 478 // systems, a browser side CDM will be used and we set CDM by calling |
| 480 // player_manager_->SetCdm() directly. | 479 // player_manager_->SetCdm() directly. |
| 481 MediaSourceDelegate::CdmReadyCB cdm_ready_cb_; | 480 MediaSourceDelegate::CdmReadyCB cdm_ready_cb_; |
| 482 | 481 |
| 483 SkBitmap bitmap_; | |
| 484 | |
| 485 // Whether stored credentials are allowed to be passed to the server. | 482 // Whether stored credentials are allowed to be passed to the server. |
| 486 bool allow_stored_credentials_; | 483 bool allow_stored_credentials_; |
| 487 | 484 |
| 488 // Whether the resource is local. | 485 // Whether the resource is local. |
| 489 bool is_local_resource_; | 486 bool is_local_resource_; |
| 490 | 487 |
| 491 // base::TickClock used by |interpolator_|. | 488 // base::TickClock used by |interpolator_|. |
| 492 base::DefaultTickClock default_tick_clock_; | 489 base::DefaultTickClock default_tick_clock_; |
| 493 | 490 |
| 494 // Tracks the most recent media time update and provides interpolated values | 491 // Tracks the most recent media time update and provides interpolated values |
| (...skipping 23 matching lines...) Expand all Loading... |
| 518 | 515 |
| 519 // NOTE: Weak pointers must be invalidated before all other member variables. | 516 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 520 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 517 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 521 | 518 |
| 522 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 519 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 523 }; | 520 }; |
| 524 | 521 |
| 525 } // namespace content | 522 } // namespace content |
| 526 | 523 |
| 527 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 524 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |