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

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

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 28 matching lines...) Expand all
39 #include "wtf/PassRefPtr.h" 39 #include "wtf/PassRefPtr.h"
40 #include "wtf/RefCounted.h" 40 #include "wtf/RefCounted.h"
41 #include "wtf/text/WTFString.h" 41 #include "wtf/text/WTFString.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 class GenericEventQueue; 44 class GenericEventQueue;
45 class MediaSource; 45 class MediaSource;
46 class SourceBufferPrivate; 46 class SourceBufferPrivate;
47 class TimeRanges; 47 class TimeRanges;
48 48
49 class SourceBuffer : public RefCounted<SourceBuffer>, public ActiveDOMObject, pu blic EventTarget, public ScriptWrappable { 49 class SourceBuffer : public EventTarget, public RefCounted<SourceBuffer>, public ActiveDOMObject, public ScriptWrappable {
50 public: 50 public:
51 static PassRefPtr<SourceBuffer> create(PassOwnPtr<SourceBufferPrivate>, Medi aSource*, GenericEventQueue*); 51 static PassRefPtr<SourceBuffer> create(PassOwnPtr<SourceBufferPrivate>, Medi aSource*, GenericEventQueue*);
52 52
53 virtual ~SourceBuffer(); 53 virtual ~SourceBuffer();
54 54
55 // SourceBuffer.idl methods 55 // SourceBuffer.idl methods
56 bool updating() const { return m_updating; } 56 bool updating() const { return m_updating; }
57 PassRefPtr<TimeRanges> buffered(ExceptionCode&) const; 57 PassRefPtr<TimeRanges> buffered(ExceptionCode&) const;
58 double timestampOffset() const; 58 double timestampOffset() const;
59 void setTimestampOffset(double, ExceptionCode&); 59 void setTimestampOffset(double, ExceptionCode&);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool m_updating; 99 bool m_updating;
100 double m_timestampOffset; 100 double m_timestampOffset;
101 101
102 Vector<unsigned char> m_pendingAppendData; 102 Vector<unsigned char> m_pendingAppendData;
103 Timer<SourceBuffer> m_appendBufferTimer; 103 Timer<SourceBuffer> m_appendBufferTimer;
104 }; 104 };
105 105
106 } // namespace WebCore 106 } // namespace WebCore
107 107
108 #endif 108 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698