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

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

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 ~SourceBuffer() override; 73 ~SourceBuffer() override;
74 74
75 // SourceBuffer.idl methods 75 // SourceBuffer.idl methods
76 const AtomicString& mode() const { return m_mode; } 76 const AtomicString& mode() const { return m_mode; }
77 void setMode(const AtomicString&, ExceptionState&); 77 void setMode(const AtomicString&, ExceptionState&);
78 bool updating() const { return m_updating; } 78 bool updating() const { return m_updating; }
79 TimeRanges* buffered(ExceptionState&) const; 79 TimeRanges* buffered(ExceptionState&) const;
80 double timestampOffset() const; 80 double timestampOffset() const;
81 void setTimestampOffset(double, ExceptionState&); 81 void setTimestampOffset(double, ExceptionState&);
82 void appendBuffer(PassRefPtr<DOMArrayBuffer> data, ExceptionState&); 82 void appendBuffer(DOMArrayBuffer* data, ExceptionState&);
83 void appendBuffer(PassRefPtr<DOMArrayBufferView> data, ExceptionState&); 83 void appendBuffer(DOMArrayBufferView* data, ExceptionState&);
84 void appendStream(Stream*, ExceptionState&); 84 void appendStream(Stream*, ExceptionState&);
85 void appendStream(Stream*, unsigned long long maxSize, ExceptionState&); 85 void appendStream(Stream*, unsigned long long maxSize, ExceptionState&);
86 void abort(ExceptionState&); 86 void abort(ExceptionState&);
87 void remove(double start, double end, ExceptionState&); 87 void remove(double start, double end, ExceptionState&);
88 double appendWindowStart() const; 88 double appendWindowStart() const;
89 void setAppendWindowStart(double, ExceptionState&); 89 void setAppendWindowStart(double, ExceptionState&);
90 double appendWindowEnd() const; 90 double appendWindowEnd() const;
91 void setAppendWindowEnd(double, ExceptionState&); 91 void setAppendWindowEnd(double, ExceptionState&);
92 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); } 92 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); }
93 void setTrackDefaults(TrackDefaultList*, ExceptionState&); 93 void setTrackDefaults(TrackDefaultList*, ExceptionState&);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 bool m_streamMaxSizeValid; 167 bool m_streamMaxSizeValid;
168 unsigned long long m_streamMaxSize; 168 unsigned long long m_streamMaxSize;
169 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; 169 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner;
170 Member<Stream> m_stream; 170 Member<Stream> m_stream;
171 OwnPtr<FileReaderLoader> m_loader; 171 OwnPtr<FileReaderLoader> m_loader;
172 }; 172 };
173 173
174 } // namespace blink 174 } // namespace blink
175 175
176 #endif // SourceBuffer_h 176 #endif // SourceBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698