OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 class WebSourceBuffer; | 41 class WebSourceBuffer; |
42 } | 42 } |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 class ExceptionState; | 46 class ExceptionState; |
47 class TimeRanges; | 47 class TimeRanges; |
48 class WebKitMediaSource; | 48 class WebKitMediaSource; |
49 | 49 |
50 class WebKitSourceBuffer FINAL : public RefCountedWillBeGarbageCollectedFinalize
d<WebKitSourceBuffer>, public ScriptWrappable { | 50 class WebKitSourceBuffer FINAL : public RefCountedWillBeGarbageCollectedFinalize
d<WebKitSourceBuffer>, public ScriptWrappable { |
51 DECLARE_GC_INFO; | |
52 public: | 51 public: |
53 static PassRefPtrWillBeRawPtr<WebKitSourceBuffer> create(PassOwnPtr<blink::W
ebSourceBuffer>, PassRefPtrWillBeRawPtr<WebKitMediaSource>); | 52 static PassRefPtrWillBeRawPtr<WebKitSourceBuffer> create(PassOwnPtr<blink::W
ebSourceBuffer>, PassRefPtrWillBeRawPtr<WebKitMediaSource>); |
54 | 53 |
55 ~WebKitSourceBuffer(); | 54 ~WebKitSourceBuffer(); |
56 | 55 |
57 // WebKitSourceBuffer.idl methods | 56 // WebKitSourceBuffer.idl methods |
58 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; | 57 PassRefPtr<TimeRanges> buffered(ExceptionState&) const; |
59 double timestampOffset() const; | 58 double timestampOffset() const; |
60 void setTimestampOffset(double, ExceptionState&); | 59 void setTimestampOffset(double, ExceptionState&); |
61 void append(PassRefPtr<Uint8Array> data, ExceptionState&); | 60 void append(PassRefPtr<Uint8Array> data, ExceptionState&); |
(...skipping 10 matching lines...) Expand all Loading... |
72 | 71 |
73 OwnPtr<blink::WebSourceBuffer> m_webSourceBuffer; | 72 OwnPtr<blink::WebSourceBuffer> m_webSourceBuffer; |
74 RefPtrWillBeMember<WebKitMediaSource> m_source; | 73 RefPtrWillBeMember<WebKitMediaSource> m_source; |
75 | 74 |
76 double m_timestampOffset; | 75 double m_timestampOffset; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace WebCore | 78 } // namespace WebCore |
80 | 79 |
81 #endif | 80 #endif |
OLD | NEW |