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

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: rebase 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual ~SourceBuffer(); 54 virtual ~SourceBuffer();
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 double appendWindowStart() const;
65 void setAppendWindowStart(double, ExceptionState&);
66 double appendWindowEnd() const;
67 void setAppendWindowEnd(double, ExceptionState&);
64 68
65 void abortIfUpdating(); 69 void abortIfUpdating();
66 void removedFromMediaSource(); 70 void removedFromMediaSource();
67 71
68 // ActiveDOMObject interface 72 // ActiveDOMObject interface
69 virtual bool hasPendingActivity() const OVERRIDE; 73 virtual bool hasPendingActivity() const OVERRIDE;
70 virtual void stop() OVERRIDE; 74 virtual void stop() OVERRIDE;
71 75
72 // EventTarget interface 76 // EventTarget interface
73 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; 77 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE;
(...skipping 18 matching lines...) Expand all
92 void appendBufferInternal(unsigned char*, unsigned, ExceptionState&); 96 void appendBufferInternal(unsigned char*, unsigned, ExceptionState&);
93 void appendBufferTimerFired(Timer<SourceBuffer>*); 97 void appendBufferTimerFired(Timer<SourceBuffer>*);
94 98
95 OwnPtr<SourceBufferPrivate> m_private; 99 OwnPtr<SourceBufferPrivate> m_private;
96 MediaSource* m_source; 100 MediaSource* m_source;
97 GenericEventQueue* m_asyncEventQueue; 101 GenericEventQueue* m_asyncEventQueue;
98 EventTargetData m_eventTargetData; 102 EventTargetData m_eventTargetData;
99 103
100 bool m_updating; 104 bool m_updating;
101 double m_timestampOffset; 105 double m_timestampOffset;
106 double m_appendWindowStart;
107 double m_appendWindowEnd;
102 108
103 Vector<unsigned char> m_pendingAppendData; 109 Vector<unsigned char> m_pendingAppendData;
104 Timer<SourceBuffer> m_appendBufferTimer; 110 Timer<SourceBuffer> m_appendBufferTimer;
105 }; 111 };
106 112
107 } // namespace WebCore 113 } // namespace WebCore
108 114
109 #endif 115 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698