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

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

Issue 61603006: Remove MediaSourcePrivate/SourceBufferPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: assert null 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
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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebKitSourceBuffer_h 31 #ifndef WebKitSourceBuffer_h
32 #define WebKitSourceBuffer_h 32 #define WebKitSourceBuffer_h
33 33
34 #include "bindings/v8/ScriptWrappable.h" 34 #include "bindings/v8/ScriptWrappable.h"
35 #include "wtf/PassRefPtr.h" 35 #include "wtf/PassRefPtr.h"
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 blink {
40 class WebSourceBuffer;
41 }
42
39 namespace WebCore { 43 namespace WebCore {
40 44
41 class ExceptionState; 45 class ExceptionState;
42 class SourceBufferPrivate;
43 class TimeRanges; 46 class TimeRanges;
44 class WebKitMediaSource; 47 class WebKitMediaSource;
45 48
46 class WebKitSourceBuffer FINAL : public RefCounted<WebKitSourceBuffer>, public S criptWrappable { 49 class WebKitSourceBuffer FINAL : public RefCounted<WebKitSourceBuffer>, public S criptWrappable {
47 public: 50 public:
48 static PassRefPtr<WebKitSourceBuffer> create(PassOwnPtr<SourceBufferPrivate> , PassRefPtr<WebKitMediaSource>); 51 static PassRefPtr<WebKitSourceBuffer> create(PassOwnPtr<blink::WebSourceBuff er>, PassRefPtr<WebKitMediaSource>);
49 52
50 ~WebKitSourceBuffer(); 53 ~WebKitSourceBuffer();
51 54
52 // WebKitSourceBuffer.idl methods 55 // WebKitSourceBuffer.idl methods
53 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; 56 PassRefPtr<TimeRanges> buffered(ExceptionState&) const;
54 double timestampOffset() const; 57 double timestampOffset() const;
55 void setTimestampOffset(double, ExceptionState&); 58 void setTimestampOffset(double, ExceptionState&);
56 void append(PassRefPtr<Uint8Array> data, ExceptionState&); 59 void append(PassRefPtr<Uint8Array> data, ExceptionState&);
57 void abort(ExceptionState&); 60 void abort(ExceptionState&);
58 61
59 void removedFromMediaSource(); 62 void removedFromMediaSource();
60 63
61 private: 64 private:
62 WebKitSourceBuffer(PassOwnPtr<SourceBufferPrivate>, PassRefPtr<WebKitMediaSo urce>); 65 WebKitSourceBuffer(PassOwnPtr<blink::WebSourceBuffer>, PassRefPtr<WebKitMedi aSource>);
63 66
64 bool isRemoved() const; 67 bool isRemoved() const;
65 68
66 OwnPtr<SourceBufferPrivate> m_private; 69 OwnPtr<blink::WebSourceBuffer> m_webSourceBuffer;
67 RefPtr<WebKitMediaSource> m_source; 70 RefPtr<WebKitMediaSource> m_source;
68 71
69 double m_timestampOffset; 72 double m_timestampOffset;
70 }; 73 };
71 74
72 } // namespace WebCore 75 } // namespace WebCore
73 76
74 #endif 77 #endif
OLDNEW
« no previous file with comments | « Source/modules/mediasource/WebKitMediaSource.cpp ('k') | Source/modules/mediasource/WebKitSourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698