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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class TimeRanges; 54 class TimeRanges;
55 class WebSourceBuffer; 55 class WebSourceBuffer;
56 56
57 class SourceBuffer final 57 class SourceBuffer final
58 : public RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer> 58 : public RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer>
59 , public ActiveScriptWrappable 59 , public ActiveScriptWrappable
60 , public ActiveDOMObject 60 , public ActiveDOMObject
61 , public FileReaderLoaderClient 61 , public FileReaderLoaderClient
62 , public WebSourceBufferClient { 62 , public WebSourceBufferClient {
63 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SourceBuffer); 63 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SourceBuffer);
64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer); 64 USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer);
65 DEFINE_WRAPPERTYPEINFO(); 65 DEFINE_WRAPPERTYPEINFO();
66 public: 66 public:
67 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener icEventQueue*); 67 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener icEventQueue*);
68 static const AtomicString& segmentsKeyword(); 68 static const AtomicString& segmentsKeyword();
69 static const AtomicString& sequenceKeyword(); 69 static const AtomicString& sequenceKeyword();
70 70
71 ~SourceBuffer() override; 71 ~SourceBuffer() override;
72 72
73 // SourceBuffer.idl methods 73 // SourceBuffer.idl methods
74 const AtomicString& mode() const { return m_mode; } 74 const AtomicString& mode() const { return m_mode; }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // FileReaderLoaderClient interface 134 // FileReaderLoaderClient interface
135 void didStartLoading() override; 135 void didStartLoading() override;
136 void didReceiveDataForClient(const char* data, unsigned dataLength) override ; 136 void didReceiveDataForClient(const char* data, unsigned dataLength) override ;
137 void didFinishLoading() override; 137 void didFinishLoading() override;
138 void didFail(FileError::ErrorCode) override; 138 void didFail(FileError::ErrorCode) override;
139 139
140 OwnPtr<WebSourceBuffer> m_webSourceBuffer; 140 OwnPtr<WebSourceBuffer> m_webSourceBuffer;
141 Member<MediaSource> m_source; 141 Member<MediaSource> m_source;
142 Member<TrackDefaultList> m_trackDefaults; 142 Member<TrackDefaultList> m_trackDefaults;
143 RawPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; 143 Member<GenericEventQueue> m_asyncEventQueue;
144 144
145 AtomicString m_mode; 145 AtomicString m_mode;
146 bool m_updating; 146 bool m_updating;
147 double m_timestampOffset; 147 double m_timestampOffset;
148 double m_appendWindowStart; 148 double m_appendWindowStart;
149 double m_appendWindowEnd; 149 double m_appendWindowEnd;
150 bool m_firstInitializationSegmentReceived; 150 bool m_firstInitializationSegmentReceived;
151 151
152 Vector<unsigned char> m_pendingAppendData; 152 Vector<unsigned char> m_pendingAppendData;
153 size_t m_pendingAppendDataOffset; 153 size_t m_pendingAppendDataOffset;
154 Member<AsyncMethodRunner<SourceBuffer>> m_appendBufferAsyncPartRunner; 154 Member<AsyncMethodRunner<SourceBuffer>> m_appendBufferAsyncPartRunner;
155 155
156 double m_pendingRemoveStart; 156 double m_pendingRemoveStart;
157 double m_pendingRemoveEnd; 157 double m_pendingRemoveEnd;
158 Member<AsyncMethodRunner<SourceBuffer>> m_removeAsyncPartRunner; 158 Member<AsyncMethodRunner<SourceBuffer>> m_removeAsyncPartRunner;
159 159
160 bool m_streamMaxSizeValid; 160 bool m_streamMaxSizeValid;
161 unsigned long long m_streamMaxSize; 161 unsigned long long m_streamMaxSize;
162 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; 162 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner;
163 Member<Stream> m_stream; 163 Member<Stream> m_stream;
164 OwnPtr<FileReaderLoader> m_loader; 164 OwnPtr<FileReaderLoader> m_loader;
165 }; 165 };
166 166
167 } // namespace blink 167 } // namespace blink
168 168
169 #endif // SourceBuffer_h 169 #endif // SourceBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698