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

Side by Side Diff: Source/core/html/HTMLMediaSource.h

Issue 710173004: Implement seekable() according to the MediaSource specification (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix some small review nits Created 6 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/modules/mediasource/MediaSource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/modules/mediasource/MediaSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698