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

Side by Side Diff: public/platform/WebMediaSource.h

Issue 61773005: Rename WebKit namespace to blink (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
« no previous file with comments | « public/platform/WebMediaConstraints.h ('k') | public/platform/WebMediaStream.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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebMediaSource_h 31 #ifndef WebMediaSource_h
32 #define WebMediaSource_h 32 #define WebMediaSource_h
33 33
34 #include "WebTimeRange.h" 34 #include "WebTimeRange.h"
35 #include "WebURL.h" 35 #include "WebURL.h"
36 36
37 namespace WebKit { 37 namespace blink {
38 38
39 class WebSourceBuffer; 39 class WebSourceBuffer;
40 40
41 class WebMediaSource { 41 class WebMediaSource {
42 public: 42 public:
43 enum AddStatus { 43 enum AddStatus {
44 AddStatusOk, 44 AddStatusOk,
45 AddStatusNotSupported, 45 AddStatusNotSupported,
46 AddStatusReachedIdLimit 46 AddStatusReachedIdLimit
47 }; 47 };
48 48
49 enum EndOfStreamStatus { 49 enum EndOfStreamStatus {
50 EndOfStreamStatusNoError, 50 EndOfStreamStatusNoError,
51 EndOfStreamStatusNetworkError, 51 EndOfStreamStatusNetworkError,
52 EndOfStreamStatusDecodeError, 52 EndOfStreamStatusDecodeError,
53 }; 53 };
54 54
55 virtual ~WebMediaSource() { } 55 virtual ~WebMediaSource() { }
56 56
57 virtual AddStatus addSourceBuffer(const WebString& type, const WebVector<Web String>& codecs, WebSourceBuffer**) = 0; 57 virtual AddStatus addSourceBuffer(const WebString& type, const WebVector<Web String>& codecs, WebSourceBuffer**) = 0;
58 virtual double duration() = 0; 58 virtual double duration() = 0;
59 virtual void setDuration(double) = 0; 59 virtual void setDuration(double) = 0;
60 virtual void markEndOfStream(EndOfStreamStatus) = 0; 60 virtual void markEndOfStream(EndOfStreamStatus) = 0;
61 virtual void unmarkEndOfStream() = 0; 61 virtual void unmarkEndOfStream() = 0;
62 }; 62 };
63 63
64 } // namespace WebKit 64 } // namespace blink
65 65
66 #endif 66 #endif
OLDNEW
« no previous file with comments | « public/platform/WebMediaConstraints.h ('k') | public/platform/WebMediaStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698