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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 blink::WebLocalFrame* frame, | 84 blink::WebLocalFrame* frame, |
85 blink::WebMediaPlayerClient* client, | 85 blink::WebMediaPlayerClient* client, |
86 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 86 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
87 base::WeakPtr<WebMediaPlayerDelegate> delegate, | 87 base::WeakPtr<WebMediaPlayerDelegate> delegate, |
88 scoped_ptr<RendererFactory> renderer_factory, | 88 scoped_ptr<RendererFactory> renderer_factory, |
89 linked_ptr<UrlIndex> url_index, | 89 linked_ptr<UrlIndex> url_index, |
90 const WebMediaPlayerParams& params); | 90 const WebMediaPlayerParams& params); |
91 ~WebMediaPlayerImpl() override; | 91 ~WebMediaPlayerImpl() override; |
92 | 92 |
93 void load(LoadType load_type, | 93 void load(LoadType load_type, |
94 const blink::WebURL& url, | 94 const blink::WebMediaElementSource& source, |
95 CORSMode cors_mode) override; | 95 CORSMode cors_mode) override; |
96 | 96 |
97 // Playback controls. | 97 // Playback controls. |
98 void play() override; | 98 void play() override; |
99 void pause() override; | 99 void pause() override; |
100 bool supportsSave() const override; | 100 bool supportsSave() const override; |
101 void seek(double seconds) override; | 101 void seek(double seconds) override; |
102 void setRate(double rate) override; | 102 void setRate(double rate) override; |
103 void setVolume(double volume) override; | 103 void setVolume(double volume) override; |
104 void setSinkId(const blink::WebString& sink_id, | 104 void setSinkId(const blink::WebString& sink_id, |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 // started; prevents us from spuriously logging errors that are transient or | 439 // started; prevents us from spuriously logging errors that are transient or |
440 // unimportant. | 440 // unimportant. |
441 bool suppress_destruction_errors_; | 441 bool suppress_destruction_errors_; |
442 | 442 |
443 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 443 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
444 }; | 444 }; |
445 | 445 |
446 } // namespace media | 446 } // namespace media |
447 | 447 |
448 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 448 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |