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

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

Issue 14876007: Add Blink side support for SourceBuffer.appendWindowStart & SourceBuffer.appendWindowEnd. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add comment code Created 7 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // SourceBuffer.idl methods 56 // SourceBuffer.idl methods
57 bool updating() const { return m_updating; } 57 bool updating() const { return m_updating; }
58 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; 58 PassRefPtr<TimeRanges> buffered(ExceptionState&) const;
59 double timestampOffset() const; 59 double timestampOffset() const;
60 void setTimestampOffset(double, ExceptionState&); 60 void setTimestampOffset(double, ExceptionState&);
61 void appendBuffer(PassRefPtr<ArrayBuffer> data, ExceptionState&); 61 void appendBuffer(PassRefPtr<ArrayBuffer> data, ExceptionState&);
62 void appendBuffer(PassRefPtr<ArrayBufferView> data, ExceptionState&); 62 void appendBuffer(PassRefPtr<ArrayBufferView> data, ExceptionState&);
63 void abort(ExceptionState&); 63 void abort(ExceptionState&);
64 void remove(double start, double end, ExceptionState&); 64 void remove(double start, double end, ExceptionState&);
65 double appendWindowStart() const;
66 void setAppendWindowStart(double, ExceptionState&);
67 double appendWindowEnd() const;
68 void setAppendWindowEnd(double, ExceptionState&);
65 69
66 void abortIfUpdating(); 70 void abortIfUpdating();
67 void removedFromMediaSource(); 71 void removedFromMediaSource();
68 72
69 // ActiveDOMObject interface 73 // ActiveDOMObject interface
70 virtual bool hasPendingActivity() const OVERRIDE; 74 virtual bool hasPendingActivity() const OVERRIDE;
71 virtual void stop() OVERRIDE; 75 virtual void stop() OVERRIDE;
72 76
73 // EventTarget interface 77 // EventTarget interface
74 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; 78 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE;
(...skipping 20 matching lines...) Expand all
95 99
96 void removeTimerFired(Timer<SourceBuffer>*); 100 void removeTimerFired(Timer<SourceBuffer>*);
97 101
98 OwnPtr<SourceBufferPrivate> m_private; 102 OwnPtr<SourceBufferPrivate> m_private;
99 MediaSource* m_source; 103 MediaSource* m_source;
100 GenericEventQueue* m_asyncEventQueue; 104 GenericEventQueue* m_asyncEventQueue;
101 EventTargetData m_eventTargetData; 105 EventTargetData m_eventTargetData;
102 106
103 bool m_updating; 107 bool m_updating;
104 double m_timestampOffset; 108 double m_timestampOffset;
109 double m_appendWindowStart;
110 double m_appendWindowEnd;
105 111
106 Vector<unsigned char> m_pendingAppendData; 112 Vector<unsigned char> m_pendingAppendData;
107 Timer<SourceBuffer> m_appendBufferTimer; 113 Timer<SourceBuffer> m_appendBufferTimer;
108 114
109 double m_pendingRemoveStart; 115 double m_pendingRemoveStart;
110 double m_pendingRemoveEnd; 116 double m_pendingRemoveEnd;
111 Timer<SourceBuffer> m_removeTimer; 117 Timer<SourceBuffer> m_removeTimer;
112 }; 118 };
113 119
114 } // namespace WebCore 120 } // namespace WebCore
115 121
116 #endif 122 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/SourceBufferPrivate.h ('k') | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698