OLD | NEW |
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // 'closed' state, and returns true to indicate attachment success. | 60 // 'closed' state, and returns true to indicate attachment success. |
61 // Reattachment allowed by first calling close() (even if already in 'closed
'). | 61 // Reattachment allowed by first calling close() (even if already in 'closed
'). |
62 // Once attached, the source uses the element to synchronously service some | 62 // Once attached, the source uses the element to synchronously service some |
63 // API operations like duration change that may need to initiate seek. | 63 // API operations like duration change that may need to initiate seek. |
64 virtual bool attachToElement(HTMLMediaElement*) = 0; | 64 virtual bool attachToElement(HTMLMediaElement*) = 0; |
65 virtual void setWebMediaSourceAndOpen(PassOwnPtr<blink::WebMediaSource>) = 0
; | 65 virtual void setWebMediaSourceAndOpen(PassOwnPtr<blink::WebMediaSource>) = 0
; |
66 virtual void close() = 0; | 66 virtual void close() = 0; |
67 virtual bool isClosed() const = 0; | 67 virtual bool isClosed() const = 0; |
68 virtual double duration() const = 0; | 68 virtual double duration() const = 0; |
69 virtual PassRefPtrWillBeRawPtr<TimeRanges> buffered() const = 0; | 69 virtual PassRefPtrWillBeRawPtr<TimeRanges> buffered() const = 0; |
| 70 virtual PassRefPtrWillBeRawPtr<TimeRanges> seekable() const = 0; |
70 #if !ENABLE(OILPAN) | 71 #if !ENABLE(OILPAN) |
71 virtual void refHTMLMediaSource() = 0; | 72 virtual void refHTMLMediaSource() = 0; |
72 virtual void derefHTMLMediaSource() = 0; | 73 virtual void derefHTMLMediaSource() = 0; |
73 #endif | 74 #endif |
74 | 75 |
75 // URLRegistrable | 76 // URLRegistrable |
76 virtual URLRegistry& registry() const override { return *s_registry; } | 77 virtual URLRegistry& registry() const override { return *s_registry; } |
77 | 78 |
78 private: | 79 private: |
79 static URLRegistry* s_registry; | 80 static URLRegistry* s_registry; |
80 }; | 81 }; |
81 | 82 |
82 } | 83 } |
83 | 84 |
84 #endif | 85 #endif |
OLD | NEW |