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

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/MediaSource.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class GenericEventQueue; 48 class GenericEventQueue;
49 class WebSourceBuffer; 49 class WebSourceBuffer;
50 50
51 class MediaSource final 51 class MediaSource final
52 : public RefCountedGarbageCollectedEventTargetWithInlineData<MediaSource> 52 : public RefCountedGarbageCollectedEventTargetWithInlineData<MediaSource>
53 , public HTMLMediaSource 53 , public HTMLMediaSource
54 , public ActiveScriptWrappable 54 , public ActiveScriptWrappable
55 , public ActiveDOMObject { 55 , public ActiveDOMObject {
56 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MediaSource); 56 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MediaSource);
57 DEFINE_WRAPPERTYPEINFO(); 57 DEFINE_WRAPPERTYPEINFO();
58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaSource); 58 USING_GARBAGE_COLLECTED_MIXIN(MediaSource);
59 public: 59 public:
60 static const AtomicString& openKeyword(); 60 static const AtomicString& openKeyword();
61 static const AtomicString& closedKeyword(); 61 static const AtomicString& closedKeyword();
62 static const AtomicString& endedKeyword(); 62 static const AtomicString& endedKeyword();
63 63
64 static MediaSource* create(ExecutionContext*); 64 static MediaSource* create(ExecutionContext*);
65 ~MediaSource() override; 65 ~MediaSource() override;
66 66
67 static void logAndThrowDOMException(ExceptionState&, const ExceptionCode& er ror, const String& message); 67 static void logAndThrowDOMException(ExceptionState&, const ExceptionCode& er ror, const String& message);
68 68
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 PassOwnPtr<WebSourceBuffer> createWebSourceBuffer(const String& type, const String& codecs, ExceptionState&); 126 PassOwnPtr<WebSourceBuffer> createWebSourceBuffer(const String& type, const String& codecs, ExceptionState&);
127 void scheduleEvent(const AtomicString& eventName); 127 void scheduleEvent(const AtomicString& eventName);
128 void endOfStreamInternal(const WebMediaSource::EndOfStreamStatus, ExceptionS tate&); 128 void endOfStreamInternal(const WebMediaSource::EndOfStreamStatus, ExceptionS tate&);
129 129
130 // Implements the duration change algorithm. 130 // Implements the duration change algorithm.
131 // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-sou rce.html#duration-change-algorithm 131 // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-sou rce.html#duration-change-algorithm
132 void durationChangeAlgorithm(double newDuration); 132 void durationChangeAlgorithm(double newDuration);
133 133
134 OwnPtr<WebMediaSource> m_webMediaSource; 134 OwnPtr<WebMediaSource> m_webMediaSource;
135 AtomicString m_readyState; 135 AtomicString m_readyState;
136 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; 136 Member<GenericEventQueue> m_asyncEventQueue;
137 RawPtrWillBeWeakMember<HTMLMediaElement> m_attachedElement; 137 WeakMember<HTMLMediaElement> m_attachedElement;
138 138
139 Member<SourceBufferList> m_sourceBuffers; 139 Member<SourceBufferList> m_sourceBuffers;
140 Member<SourceBufferList> m_activeSourceBuffers; 140 Member<SourceBufferList> m_activeSourceBuffers;
141 141
142 bool m_isAddedToRegistry; 142 bool m_isAddedToRegistry;
143 }; 143 };
144 144
145 } // namespace blink 145 } // namespace blink
146 146
147 #endif // MediaSource_h 147 #endif // MediaSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698