| OLD | NEW |
| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 293 |
| 294 bool hasClosedCaptions() const; | 294 bool hasClosedCaptions() const; |
| 295 bool closedCaptionsVisible() const; | 295 bool closedCaptionsVisible() const; |
| 296 void setClosedCaptionsVisible(bool); | 296 void setClosedCaptionsVisible(bool); |
| 297 | 297 |
| 298 MediaControls* mediaControls() const; | 298 MediaControls* mediaControls() const; |
| 299 | 299 |
| 300 void sourceWasRemoved(HTMLSourceElement*); | 300 void sourceWasRemoved(HTMLSourceElement*); |
| 301 void sourceWasAdded(HTMLSourceElement*); | 301 void sourceWasAdded(HTMLSourceElement*); |
| 302 | 302 |
| 303 void privateBrowsingStateDidChange(); | |
| 304 | |
| 305 // Media cache management. | 303 // Media cache management. |
| 306 static void getSitesInMediaCache(Vector<String>&); | 304 static void getSitesInMediaCache(Vector<String>&); |
| 307 static void clearMediaCache(); | 305 static void clearMediaCache(); |
| 308 static void clearMediaCacheForSite(const String&); | 306 static void clearMediaCacheForSite(const String&); |
| 309 static void resetMediaEngines(); | 307 static void resetMediaEngines(); |
| 310 | 308 |
| 311 bool isPlaying() const { return m_playing; } | 309 bool isPlaying() const { return m_playing; } |
| 312 | 310 |
| 313 virtual bool hasPendingActivity() const; | 311 virtual bool hasPendingActivity() const; |
| 314 | 312 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 inline HTMLMediaElement* toMediaElement(Node* node) | 720 inline HTMLMediaElement* toMediaElement(Node* node) |
| 723 { | 721 { |
| 724 ASSERT_WITH_SECURITY_IMPLICATION(!node || isMediaElement(node)); | 722 ASSERT_WITH_SECURITY_IMPLICATION(!node || isMediaElement(node)); |
| 725 return static_cast<HTMLMediaElement*>(node); | 723 return static_cast<HTMLMediaElement*>(node); |
| 726 } | 724 } |
| 727 | 725 |
| 728 } //namespace | 726 } //namespace |
| 729 | 727 |
| 730 #endif | 728 #endif |
| 731 #endif | 729 #endif |
| OLD | NEW |