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

Side by Side Diff: Source/modules/mediasource/MediaSource.h

Issue 710173004: Implement seekable() according to the MediaSource specification (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void endOfStream(ExceptionState&); 74 void endOfStream(ExceptionState&);
75 static bool isTypeSupported(const String& type); 75 static bool isTypeSupported(const String& type);
76 76
77 // HTMLMediaSource 77 // HTMLMediaSource
78 virtual bool attachToElement(HTMLMediaElement*) override; 78 virtual bool attachToElement(HTMLMediaElement*) override;
79 virtual void setWebMediaSourceAndOpen(PassOwnPtr<WebMediaSource>) override; 79 virtual void setWebMediaSourceAndOpen(PassOwnPtr<WebMediaSource>) override;
80 virtual void close() override; 80 virtual void close() override;
81 virtual bool isClosed() const override; 81 virtual bool isClosed() const override;
82 virtual double duration() const override; 82 virtual double duration() const override;
83 virtual PassRefPtrWillBeRawPtr<TimeRanges> buffered() const override; 83 virtual PassRefPtrWillBeRawPtr<TimeRanges> buffered() const override;
84 virtual PassRefPtrWillBeRawPtr<TimeRanges> seekable() const override;
84 #if !ENABLE(OILPAN) 85 #if !ENABLE(OILPAN)
85 virtual void refHTMLMediaSource() override { ref(); } 86 virtual void refHTMLMediaSource() override { ref(); }
86 virtual void derefHTMLMediaSource() override { deref(); } 87 virtual void derefHTMLMediaSource() override { deref(); }
87 #endif 88 #endif
88 89
89 // EventTarget interface 90 // EventTarget interface
90 virtual const AtomicString& interfaceName() const override; 91 virtual const AtomicString& interfaceName() const override;
91 virtual ExecutionContext* executionContext() const override; 92 virtual ExecutionContext* executionContext() const override;
92 93
93 // ActiveDOMObject interface 94 // ActiveDOMObject interface
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 Member<SourceBufferList> m_sourceBuffers; 134 Member<SourceBufferList> m_sourceBuffers;
134 Member<SourceBufferList> m_activeSourceBuffers; 135 Member<SourceBufferList> m_activeSourceBuffers;
135 136
136 bool m_isAddedToRegistry; 137 bool m_isAddedToRegistry;
137 }; 138 };
138 139
139 } // namespace blink 140 } // namespace blink
140 141
141 #endif // MediaSource_h 142 #endif // MediaSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698