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

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

Powered by Google App Engine
This is Rietveld 408576698