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

Side by Side Diff: webkit/api/src/WebMediaPlayerClientImpl.cpp

Issue 160076: BufferedDataSource to support server without range request support... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/api/src/WebMediaPlayerClientImpl.h ('k') | webkit/glue/media/buffered_data_source.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "config.h" 5 #include "config.h"
6 #include "WebMediaPlayerClientImpl.h" 6 #include "WebMediaPlayerClientImpl.h"
7 7
8 #if ENABLE(VIDEO) 8 #if ENABLE(VIDEO)
9 9
10 #include "TemporaryGlue.h" 10 #include "TemporaryGlue.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 #endif 354 #endif
355 } 355 }
356 } 356 }
357 357
358 void WebMediaPlayerClientImpl::setAutobuffer(bool autoBuffer) 358 void WebMediaPlayerClientImpl::setAutobuffer(bool autoBuffer)
359 { 359 {
360 if (m_webMediaPlayer.get()) 360 if (m_webMediaPlayer.get())
361 m_webMediaPlayer->setAutoBuffer(autoBuffer); 361 m_webMediaPlayer->setAutoBuffer(autoBuffer);
362 } 362 }
363 363
364 bool WebMediaPlayerClientImpl::hasSingleSecurityOrigin() const
365 {
366 if (m_webMediaPlayer.get())
367 return m_webMediaPlayer->hasSingleSecurityOrigin();
368 return false;
369 }
370
371 MediaPlayer::MovieLoadType WebMediaPlayerClientImpl::movieLoadType() const
372 {
373 COMPILE_ASSERT(
374 int(WebMediaPlayer::Unknown) == int(MediaPlayer::Unknown),
375 Unknown);
376 COMPILE_ASSERT(
377 int(WebMediaPlayer::Download) == int(MediaPlayer::Download),
378 Download);
379 COMPILE_ASSERT(
380 int(WebMediaPlayer::StoredStream) == int(MediaPlayer::StoredStream),
381 StoredStream);
382 COMPILE_ASSERT(
383 int(WebMediaPlayer::LiveStream) == int(MediaPlayer::LiveStream),
384 LiveStream);
385
386 if (m_webMediaPlayer.get())
387 return static_cast<MediaPlayer::MovieLoadType>(
388 m_webMediaPlayer->movieLoadType());
389 return MediaPlayer::Unknown;
390 }
391
364 MediaPlayerPrivateInterface* WebMediaPlayerClientImpl::create(MediaPlayer* player) 392 MediaPlayerPrivateInterface* WebMediaPlayerClientImpl::create(MediaPlayer* player)
365 { 393 {
366 WebMediaPlayerClientImpl* client = new WebMediaPlayerClientImpl(); 394 WebMediaPlayerClientImpl* client = new WebMediaPlayerClientImpl();
367 client->m_mediaPlayer = player; 395 client->m_mediaPlayer = player;
368 return client; 396 return client;
369 } 397 }
370 398
371 void WebMediaPlayerClientImpl::getSupportedTypes(HashSet<String>& supportedTypes) 399 void WebMediaPlayerClientImpl::getSupportedTypes(HashSet<String>& supportedTypes)
372 { 400 {
373 // FIXME: integrate this list with WebMediaPlayerClientImpl::supportsType. 401 // FIXME: integrate this list with WebMediaPlayerClientImpl::supportsType.
(...skipping 17 matching lines...) Expand all
391 } 419 }
392 420
393 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl() 421 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl()
394 : m_mediaPlayer(0) 422 : m_mediaPlayer(0)
395 { 423 {
396 } 424 }
397 425
398 } // namespace WebKit 426 } // namespace WebKit
399 427
400 #endif // ENABLE(VIDEO) 428 #endif // ENABLE(VIDEO)
OLDNEW
« no previous file with comments | « webkit/api/src/WebMediaPlayerClientImpl.h ('k') | webkit/glue/media/buffered_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698