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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 blink::WebLocalFrame* frame, | 89 blink::WebLocalFrame* frame, |
90 blink::WebMediaPlayerClient* client, | 90 blink::WebMediaPlayerClient* client, |
91 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 91 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
92 base::WeakPtr<WebMediaPlayerDelegate> delegate, | 92 base::WeakPtr<WebMediaPlayerDelegate> delegate, |
93 scoped_ptr<RendererFactory> renderer_factory, | 93 scoped_ptr<RendererFactory> renderer_factory, |
94 linked_ptr<UrlIndex> url_index, | 94 linked_ptr<UrlIndex> url_index, |
95 const WebMediaPlayerParams& params); | 95 const WebMediaPlayerParams& params); |
96 ~WebMediaPlayerImpl() override; | 96 ~WebMediaPlayerImpl() override; |
97 | 97 |
98 void load(LoadType load_type, | 98 void load(LoadType load_type, |
99 const blink::WebURL& url, | 99 const blink::WebMediaElementSource& source, |
100 CORSMode cors_mode) override; | 100 CORSMode cors_mode) override; |
101 | 101 |
102 // Playback controls. | 102 // Playback controls. |
103 void play() override; | 103 void play() override; |
104 void pause() override; | 104 void pause() override; |
105 bool supportsSave() const override; | 105 bool supportsSave() const override; |
106 void seek(double seconds) override; | 106 void seek(double seconds) override; |
107 void setRate(double rate) override; | 107 void setRate(double rate) override; |
108 void setVolume(double volume) override; | 108 void setVolume(double volume) override; |
109 void setSinkId(const blink::WebString& sink_id, | 109 void setSinkId(const blink::WebString& sink_id, |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 // started; prevents us from spuriously logging errors that are transient or | 443 // started; prevents us from spuriously logging errors that are transient or |
444 // unimportant. | 444 // unimportant. |
445 bool suppress_destruction_errors_; | 445 bool suppress_destruction_errors_; |
446 | 446 |
447 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 447 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
448 }; | 448 }; |
449 | 449 |
450 } // namespace media | 450 } // namespace media |
451 | 451 |
452 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 452 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |