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

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

Powered by Google App Engine
This is Rietveld 408576698