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

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

Issue 47613002: Use FINAL macro for classes whose virtual destructor was removed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 25 matching lines...) Expand all
36 #include "wtf/RefCounted.h" 36 #include "wtf/RefCounted.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class ExceptionState; 41 class ExceptionState;
42 class SourceBufferPrivate; 42 class SourceBufferPrivate;
43 class TimeRanges; 43 class TimeRanges;
44 class WebKitMediaSource; 44 class WebKitMediaSource;
45 45
46 class WebKitSourceBuffer : public RefCounted<WebKitSourceBuffer>, public ScriptW rappable { 46 class WebKitSourceBuffer FINAL : public RefCounted<WebKitSourceBuffer>, public S criptWrappable {
47 public: 47 public:
48 static PassRefPtr<WebKitSourceBuffer> create(PassOwnPtr<SourceBufferPrivate> , PassRefPtr<WebKitMediaSource>); 48 static PassRefPtr<WebKitSourceBuffer> create(PassOwnPtr<SourceBufferPrivate> , PassRefPtr<WebKitMediaSource>);
49 49
50 ~WebKitSourceBuffer(); 50 ~WebKitSourceBuffer();
51 51
52 // WebKitSourceBuffer.idl methods 52 // WebKitSourceBuffer.idl methods
53 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; 53 PassRefPtr<TimeRanges> buffered(ExceptionState&) const;
54 double timestampOffset() const; 54 double timestampOffset() const;
55 void setTimestampOffset(double, ExceptionState&); 55 void setTimestampOffset(double, ExceptionState&);
56 void append(PassRefPtr<Uint8Array> data, ExceptionState&); 56 void append(PassRefPtr<Uint8Array> data, ExceptionState&);
57 void abort(ExceptionState&); 57 void abort(ExceptionState&);
58 58
59 void removedFromMediaSource(); 59 void removedFromMediaSource();
60 60
61 private: 61 private:
62 WebKitSourceBuffer(PassOwnPtr<SourceBufferPrivate>, PassRefPtr<WebKitMediaSo urce>); 62 WebKitSourceBuffer(PassOwnPtr<SourceBufferPrivate>, PassRefPtr<WebKitMediaSo urce>);
63 63
64 bool isRemoved() const; 64 bool isRemoved() const;
65 65
66 OwnPtr<SourceBufferPrivate> m_private; 66 OwnPtr<SourceBufferPrivate> m_private;
67 RefPtr<WebKitMediaSource> m_source; 67 RefPtr<WebKitMediaSource> m_source;
68 68
69 double m_timestampOffset; 69 double m_timestampOffset;
70 }; 70 };
71 71
72 } // namespace WebCore 72 } // namespace WebCore
73 73
74 #endif 74 #endif
OLDNEW
« no previous file with comments | « Source/core/xml/XMLTreeViewer.h ('k') | Source/modules/mediastream/MediaStreamTrackSourcesRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698