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

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

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // SourceBuffer.idl methods 69 // SourceBuffer.idl methods
70 const AtomicString& mode() const { return m_mode; } 70 const AtomicString& mode() const { return m_mode; }
71 void setMode(const AtomicString&, ExceptionState&); 71 void setMode(const AtomicString&, ExceptionState&);
72 bool updating() const { return m_updating; } 72 bool updating() const { return m_updating; }
73 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; 73 PassRefPtr<TimeRanges> buffered(ExceptionState&) const;
74 double timestampOffset() const; 74 double timestampOffset() const;
75 void setTimestampOffset(double, ExceptionState&); 75 void setTimestampOffset(double, ExceptionState&);
76 void appendBuffer(PassRefPtr<ArrayBuffer> data, ExceptionState&); 76 void appendBuffer(PassRefPtr<ArrayBuffer> data, ExceptionState&);
77 void appendBuffer(PassRefPtr<ArrayBufferView> data, ExceptionState&); 77 void appendBuffer(PassRefPtr<ArrayBufferView> data, ExceptionState&);
78 void appendStream(PassRefPtr<Stream>, ExceptionState&); 78 void appendStream(PassRefPtrWillBeRawPtr<Stream>, ExceptionState&);
79 void appendStream(PassRefPtr<Stream>, unsigned long long maxSize, ExceptionS tate&); 79 void appendStream(PassRefPtrWillBeRawPtr<Stream>, unsigned long long maxSize , ExceptionState&);
80 void abort(ExceptionState&); 80 void abort(ExceptionState&);
81 void remove(double start, double end, ExceptionState&); 81 void remove(double start, double end, ExceptionState&);
82 double appendWindowStart() const; 82 double appendWindowStart() const;
83 void setAppendWindowStart(double, ExceptionState&); 83 void setAppendWindowStart(double, ExceptionState&);
84 double appendWindowEnd() const; 84 double appendWindowEnd() const;
85 void setAppendWindowEnd(double, ExceptionState&); 85 void setAppendWindowEnd(double, ExceptionState&);
86 86
87 void abortIfUpdating(); 87 void abortIfUpdating();
88 void removedFromMediaSource(); 88 void removedFromMediaSource();
89 89
(...skipping 13 matching lines...) Expand all
103 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ ueue*); 103 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ ueue*);
104 104
105 bool isRemoved() const; 105 bool isRemoved() const;
106 void scheduleEvent(const AtomicString& eventName); 106 void scheduleEvent(const AtomicString& eventName);
107 107
108 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); 108 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&);
109 void appendBufferAsyncPart(); 109 void appendBufferAsyncPart();
110 110
111 void removeAsyncPart(); 111 void removeAsyncPart();
112 112
113 void appendStreamInternal(PassRefPtr<Stream>, ExceptionState&); 113 void appendStreamInternal(PassRefPtrWillBeRawPtr<Stream>, ExceptionState&);
114 void appendStreamAsyncPart(); 114 void appendStreamAsyncPart();
115 void appendStreamDone(bool success); 115 void appendStreamDone(bool success);
116 void clearAppendStreamState(); 116 void clearAppendStreamState();
117 117
118 // FileReaderLoaderClient interface 118 // FileReaderLoaderClient interface
119 virtual void didStartLoading() OVERRIDE; 119 virtual void didStartLoading() OVERRIDE;
120 virtual void didReceiveDataForClient(const char* data, unsigned dataLength) OVERRIDE; 120 virtual void didReceiveDataForClient(const char* data, unsigned dataLength) OVERRIDE;
121 virtual void didFinishLoading() OVERRIDE; 121 virtual void didFinishLoading() OVERRIDE;
122 virtual void didFail(FileError::ErrorCode) OVERRIDE; 122 virtual void didFail(FileError::ErrorCode) OVERRIDE;
123 123
(...skipping 10 matching lines...) Expand all
134 Vector<unsigned char> m_pendingAppendData; 134 Vector<unsigned char> m_pendingAppendData;
135 AsyncMethodRunner<SourceBuffer> m_appendBufferAsyncPartRunner; 135 AsyncMethodRunner<SourceBuffer> m_appendBufferAsyncPartRunner;
136 136
137 double m_pendingRemoveStart; 137 double m_pendingRemoveStart;
138 double m_pendingRemoveEnd; 138 double m_pendingRemoveEnd;
139 AsyncMethodRunner<SourceBuffer> m_removeAsyncPartRunner; 139 AsyncMethodRunner<SourceBuffer> m_removeAsyncPartRunner;
140 140
141 bool m_streamMaxSizeValid; 141 bool m_streamMaxSizeValid;
142 unsigned long long m_streamMaxSize; 142 unsigned long long m_streamMaxSize;
143 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; 143 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner;
144 RefPtr<Stream> m_stream; 144 RefPtrWillBeMember<Stream> m_stream;
145 OwnPtr<FileReaderLoader> m_loader; 145 OwnPtr<FileReaderLoader> m_loader;
146 }; 146 };
147 147
148 } // namespace WebCore 148 } // namespace WebCore
149 149
150 #endif 150 #endif
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBTransactionTest.cpp ('k') | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698