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

Side by Side Diff: webkit/api/public/WebMediaPlayer.h

Issue 160076: BufferedDataSource to support server without range request support... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months 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 | « media/filters/file_data_source.cc ('k') | webkit/api/src/WebMediaPlayerClientImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }; 52 };
53 53
54 enum ReadyState { 54 enum ReadyState {
55 HaveNothing, 55 HaveNothing,
56 HaveMetadata, 56 HaveMetadata,
57 HaveCurrentData, 57 HaveCurrentData,
58 HaveFutureData, 58 HaveFutureData,
59 HaveEnoughData, 59 HaveEnoughData,
60 }; 60 };
61 61
62 enum MovieLoadType{
63 Unknown,
64 Download,
65 StoredStream,
66 LiveStream,
67 };
68
62 virtual ~WebMediaPlayer() {} 69 virtual ~WebMediaPlayer() {}
63 70
64 virtual void load(const WebURL&) = 0; 71 virtual void load(const WebURL&) = 0;
65 virtual void cancelLoad() = 0; 72 virtual void cancelLoad() = 0;
66 73
67 // Playback controls. 74 // Playback controls.
68 virtual void play() = 0; 75 virtual void play() = 0;
69 virtual void pause() = 0; 76 virtual void pause() = 0;
70 virtual bool supportsFullscreen() const = 0; 77 virtual bool supportsFullscreen() const = 0;
71 virtual bool supportsSave() const = 0; 78 virtual bool supportsSave() const = 0;
(...skipping 25 matching lines...) Expand all
97 104
98 // Get rate of loading the resource. 105 // Get rate of loading the resource.
99 virtual int dataRate() const = 0; 106 virtual int dataRate() const = 0;
100 107
101 // Internal states of loading and network. 108 // Internal states of loading and network.
102 virtual NetworkState networkState() const = 0; 109 virtual NetworkState networkState() const = 0;
103 virtual ReadyState readyState() const = 0; 110 virtual ReadyState readyState() const = 0;
104 111
105 virtual unsigned long long bytesLoaded() const = 0; 112 virtual unsigned long long bytesLoaded() const = 0;
106 virtual unsigned long long totalBytes() const = 0; 113 virtual unsigned long long totalBytes() const = 0;
114
115 virtual bool hasSingleSecurityOrigin() const = 0;
116 virtual MovieLoadType movieLoadType() const = 0;
107 }; 117 };
108 118
109 } // namespace WebKit 119 } // namespace WebKit
110 120
111 #endif 121 #endif
OLDNEW
« no previous file with comments | « media/filters/file_data_source.cc ('k') | webkit/api/src/WebMediaPlayerClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698