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

Side by Side Diff: Source/WebCore/platform/graphics/MediaPlayer.h

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Repatch to ToT Created 7 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 double mediaTimeForTimeValue(double) const; 383 double mediaTimeForTimeValue(double) const;
384 384
385 double maximumDurationToCacheMediaTime() const; 385 double maximumDurationToCacheMediaTime() const;
386 386
387 unsigned decodedFrameCount() const; 387 unsigned decodedFrameCount() const;
388 unsigned droppedFrameCount() const; 388 unsigned droppedFrameCount() const;
389 unsigned audioDecodedByteCount() const; 389 unsigned audioDecodedByteCount() const;
390 unsigned videoDecodedByteCount() const; 390 unsigned videoDecodedByteCount() const;
391 391
392 void setPrivateBrowsingMode(bool);
393
394 #if ENABLE(WEB_AUDIO) 392 #if ENABLE(WEB_AUDIO)
395 AudioSourceProvider* audioSourceProvider(); 393 AudioSourceProvider* audioSourceProvider();
396 #endif 394 #endif
397 395
398 #if ENABLE(ENCRYPTED_MEDIA) 396 #if ENABLE(ENCRYPTED_MEDIA)
399 void keyAdded(const String& keySystem, const String& sessionId); 397 void keyAdded(const String& keySystem, const String& sessionId);
400 void keyError(const String& keySystem, const String& sessionId, MediaPlayerC lient::MediaKeyErrorCode, unsigned short systemCode); 398 void keyError(const String& keySystem, const String& sessionId, MediaPlayerC lient::MediaKeyErrorCode, unsigned short systemCode);
401 void keyMessage(const String& keySystem, const String& sessionId, const unsi gned char* message, unsigned messageLength, const KURL& defaultURL); 399 void keyMessage(const String& keySystem, const String& sessionId, const unsi gned char* message, unsigned messageLength, const KURL& defaultURL);
402 bool keyNeeded(const String& keySystem, const String& sessionId, const unsig ned char* initData, unsigned initDataLength); 400 bool keyNeeded(const String& keySystem, const String& sessionId, const unsig ned char* initData, unsigned initDataLength);
403 #endif 401 #endif
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 String m_contentTypeCodecs; 446 String m_contentTypeCodecs;
449 String m_keySystem; 447 String m_keySystem;
450 FrameView* m_frameView; 448 FrameView* m_frameView;
451 IntSize m_size; 449 IntSize m_size;
452 Preload m_preload; 450 Preload m_preload;
453 bool m_visible; 451 bool m_visible;
454 double m_rate; 452 double m_rate;
455 double m_volume; 453 double m_volume;
456 bool m_muted; 454 bool m_muted;
457 bool m_preservesPitch; 455 bool m_preservesPitch;
458 bool m_privateBrowsing;
459 bool m_shouldPrepareToRender; 456 bool m_shouldPrepareToRender;
460 bool m_contentMIMETypeWasInferredFromExtension; 457 bool m_contentMIMETypeWasInferredFromExtension;
461 458
462 RefPtr<MediaSource> m_mediaSource; 459 RefPtr<MediaSource> m_mediaSource;
463 }; 460 };
464 461
465 typedef PassOwnPtr<MediaPlayerPrivateInterface> (*CreateMediaEnginePlayer)(Media Player*); 462 typedef PassOwnPtr<MediaPlayerPrivateInterface> (*CreateMediaEnginePlayer)(Media Player*);
466 typedef void (*MediaEngineSupportedTypes)(HashSet<String>& types); 463 typedef void (*MediaEngineSupportedTypes)(HashSet<String>& types);
467 #if ENABLE(ENCRYPTED_MEDIA) || ENABLE(ENCRYPTED_MEDIA_V2) 464 #if ENABLE(ENCRYPTED_MEDIA) || ENABLE(ENCRYPTED_MEDIA_V2)
468 typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const String& type, const String& codecs, const String& keySystem, const KURL& url); 465 typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const String& type, const String& codecs, const String& keySystem, const KURL& url);
469 #else 466 #else
470 typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const String& type, const String& codecs, const KURL& url); 467 typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const String& type, const String& codecs, const KURL& url);
471 #endif 468 #endif
472 typedef void (*MediaEngineGetSitesInMediaCache)(Vector<String>&); 469 typedef void (*MediaEngineGetSitesInMediaCache)(Vector<String>&);
473 typedef void (*MediaEngineClearMediaCache)(); 470 typedef void (*MediaEngineClearMediaCache)();
474 typedef void (*MediaEngineClearMediaCacheForSite)(const String&); 471 typedef void (*MediaEngineClearMediaCacheForSite)(const String&);
475 472
476 typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer, MediaEngineSupport edTypes, MediaEngineSupportsType, 473 typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer, MediaEngineSupport edTypes, MediaEngineSupportsType,
477 MediaEngineGetSitesInMediaCache, MediaEngineClearMediaCache, MediaEngineClea rMediaCacheForSite); 474 MediaEngineGetSitesInMediaCache, MediaEngineClearMediaCache, MediaEngineClea rMediaCacheForSite);
478 475
479 } 476 }
480 477
481 #endif // ENABLE(VIDEO) 478 #endif // ENABLE(VIDEO)
482 479
483 #endif 480 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/platform/SchemeRegistry.cpp ('k') | Source/WebCore/platform/graphics/MediaPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698