| 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
| 6 // It contains Pipeline which is the actual media player pipeline, it glues | 6 // It contains Pipeline which is the actual media player pipeline, it glues |
| 7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
| 8 // Pipeline would creates multiple threads and access some public methods | 8 // Pipeline would creates multiple threads and access some public methods |
| 9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
| 10 // methods and members. | 10 // methods and members. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const WebMediaPlayerParams& params); | 91 const WebMediaPlayerParams& params); |
| 92 virtual ~WebMediaPlayerImpl(); | 92 virtual ~WebMediaPlayerImpl(); |
| 93 | 93 |
| 94 virtual void load(LoadType load_type, | 94 virtual void load(LoadType load_type, |
| 95 const blink::WebURL& url, | 95 const blink::WebURL& url, |
| 96 CORSMode cors_mode); | 96 CORSMode cors_mode); |
| 97 | 97 |
| 98 // Playback controls. | 98 // Playback controls. |
| 99 virtual void play(); | 99 virtual void play(); |
| 100 virtual void pause(); | 100 virtual void pause(); |
| 101 virtual bool supportsFullscreen() const; | |
| 102 virtual bool supportsSave() const; | 101 virtual bool supportsSave() const; |
| 103 virtual void seek(double seconds); | 102 virtual void seek(double seconds); |
| 104 virtual void setRate(double rate); | 103 virtual void setRate(double rate); |
| 105 virtual void setVolume(double volume); | 104 virtual void setVolume(double volume); |
| 106 virtual void setPreload(blink::WebMediaPlayer::Preload preload); | 105 virtual void setPreload(blink::WebMediaPlayer::Preload preload); |
| 107 virtual const blink::WebTimeRanges& buffered(); | 106 virtual const blink::WebTimeRanges& buffered(); |
| 108 virtual double maxTimeSeekable() const; | 107 virtual double maxTimeSeekable() const; |
| 109 | 108 |
| 110 // Methods for painting. | 109 // Methods for painting. |
| 111 virtual void paint(blink::WebCanvas* canvas, | 110 virtual void paint(blink::WebCanvas* canvas, |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 // Non-owned pointer to the CDM. Updated via calls to | 379 // Non-owned pointer to the CDM. Updated via calls to |
| 381 // setContentDecryptionModule(). | 380 // setContentDecryptionModule(). |
| 382 WebContentDecryptionModuleImpl* web_cdm_; | 381 WebContentDecryptionModuleImpl* web_cdm_; |
| 383 | 382 |
| 384 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 383 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 385 }; | 384 }; |
| 386 | 385 |
| 387 } // namespace content | 386 } // namespace content |
| 388 | 387 |
| 389 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 388 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |