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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/mediasource/MediaSource.h ('k') | Source/modules/mediasource/SourceBufferList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class MediaSource; 51 class MediaSource;
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 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S ourceBuffer>); 61 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SourceBuffer);
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer); 62 WILL_BE_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 virtual ~SourceBuffer(); 69 virtual ~SourceBuffer();
70 70
71 // SourceBuffer.idl methods 71 // SourceBuffer.idl methods
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 bool m_streamMaxSizeValid; 153 bool m_streamMaxSizeValid;
154 unsigned long long m_streamMaxSize; 154 unsigned long long m_streamMaxSize;
155 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; 155 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner;
156 Member<Stream> m_stream; 156 Member<Stream> m_stream;
157 OwnPtr<FileReaderLoader> m_loader; 157 OwnPtr<FileReaderLoader> m_loader;
158 }; 158 };
159 159
160 } // namespace blink 160 } // namespace blink
161 161
162 #endif // SourceBuffer_h 162 #endif // SourceBuffer_h
OLDNEW
« no previous file with comments | « Source/modules/mediasource/MediaSource.h ('k') | Source/modules/mediasource/SourceBufferList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698