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

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

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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
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 namespace WebCore { 51 namespace WebCore {
52 52
53 class ExceptionState; 53 class ExceptionState;
54 class FileReaderLoader; 54 class FileReaderLoader;
55 class GenericEventQueue; 55 class GenericEventQueue;
56 class MediaSource; 56 class MediaSource;
57 class Stream; 57 class Stream;
58 class TimeRanges; 58 class TimeRanges;
59 59
60 class SourceBuffer FINAL : public RefCountedWillBeRefCountedGarbageCollected<Sou rceBuffer>, public ActiveDOMObject, public EventTargetWithInlineData, public Scr iptWrappable, public FileReaderLoaderClient { 60 class SourceBuffer FINAL : public RefCountedWillBeRefCountedGarbageCollected<Sou rceBuffer>, public ActiveDOMObject, public EventTargetWithInlineData, public Scr iptWrappable, public FileReaderLoaderClient {
61 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<S ourceBuffer>); 61 REFCOUNTED_EVENT_TARGET(SourceBuffer);
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer);
62 public: 63 public:
63 static PassRefPtrWillBeRawPtr<SourceBuffer> create(PassOwnPtr<blink::WebSour ceBuffer>, MediaSource*, GenericEventQueue*); 64 static PassRefPtrWillBeRawPtr<SourceBuffer> create(PassOwnPtr<blink::WebSour ceBuffer>, MediaSource*, GenericEventQueue*);
64 static const AtomicString& segmentsKeyword(); 65 static const AtomicString& segmentsKeyword();
65 static const AtomicString& sequenceKeyword(); 66 static const AtomicString& sequenceKeyword();
66 67
67 virtual ~SourceBuffer(); 68 virtual ~SourceBuffer();
68 69
69 // SourceBuffer.idl methods 70 // SourceBuffer.idl methods
70 const AtomicString& mode() const { return m_mode; } 71 const AtomicString& mode() const { return m_mode; }
71 void setMode(const AtomicString&, ExceptionState&); 72 void setMode(const AtomicString&, ExceptionState&);
(...skipping 18 matching lines...) Expand all
90 // ActiveDOMObject interface 91 // ActiveDOMObject interface
91 virtual bool hasPendingActivity() const OVERRIDE; 92 virtual bool hasPendingActivity() const OVERRIDE;
92 virtual void suspend() OVERRIDE; 93 virtual void suspend() OVERRIDE;
93 virtual void resume() OVERRIDE; 94 virtual void resume() OVERRIDE;
94 virtual void stop() OVERRIDE; 95 virtual void stop() OVERRIDE;
95 96
96 // EventTarget interface 97 // EventTarget interface
97 virtual ExecutionContext* executionContext() const OVERRIDE; 98 virtual ExecutionContext* executionContext() const OVERRIDE;
98 virtual const AtomicString& interfaceName() const OVERRIDE; 99 virtual const AtomicString& interfaceName() const OVERRIDE;
99 100
100 void trace(Visitor*); 101 virtual void trace(Visitor*) OVERRIDE;
101 102
102 private: 103 private:
103 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ ueue*); 104 SourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQ ueue*);
104 105
105 bool isRemoved() const; 106 bool isRemoved() const;
106 void scheduleEvent(const AtomicString& eventName); 107 void scheduleEvent(const AtomicString& eventName);
107 108
108 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); 109 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&);
109 void appendBufferAsyncPart(); 110 void appendBufferAsyncPart();
110 111
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 bool m_streamMaxSizeValid; 143 bool m_streamMaxSizeValid;
143 unsigned long long m_streamMaxSize; 144 unsigned long long m_streamMaxSize;
144 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; 145 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner;
145 RefPtrWillBeMember<Stream> m_stream; 146 RefPtrWillBeMember<Stream> m_stream;
146 OwnPtr<FileReaderLoader> m_loader; 147 OwnPtr<FileReaderLoader> m_loader;
147 }; 148 };
148 149
149 } // namespace WebCore 150 } // namespace WebCore
150 151
151 #endif 152 #endif
OLDNEW
« no previous file with comments | « Source/modules/mediasource/MediaSourceBase.h ('k') | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698