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

Side by Side Diff: Source/WebKit/chromium/public/WebMediaPlayer.h

Issue 10536097: Merge 119742 - Plumb CORS attribute information from HTMLMediaElement to media players so it can be… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 }; 101 };
102 102
103 enum CORSMode { 103 enum CORSMode {
104 CORSModeUnspecified, 104 CORSModeUnspecified,
105 CORSModeAnonymous, 105 CORSModeAnonymous,
106 CORSModeUseCredentials, 106 CORSModeUseCredentials,
107 }; 107 };
108 108
109 virtual ~WebMediaPlayer() {} 109 virtual ~WebMediaPlayer() {}
110 110
111 virtual void load(const WebURL&) = 0; 111 virtual void load(const WebURL&, CORSMode) = 0;
112 virtual void cancelLoad() = 0; 112 virtual void cancelLoad() = 0;
113 113
114 // Playback controls. 114 // Playback controls.
115 virtual void play() = 0; 115 virtual void play() = 0;
116 virtual void pause() = 0; 116 virtual void pause() = 0;
117 virtual bool supportsFullscreen() const = 0; 117 virtual bool supportsFullscreen() const = 0;
118 virtual bool supportsSave() const = 0; 118 virtual bool supportsSave() const = 0;
119 virtual void seek(float seconds) = 0; 119 virtual void seek(float seconds) = 0;
120 virtual void setEndTime(float seconds) = 0; 120 virtual void setEndTime(float seconds) = 0;
121 virtual void setRate(float) = 0; 121 virtual void setRate(float) = 0;
(...skipping 25 matching lines...) Expand all
147 virtual int dataRate() const = 0; 147 virtual int dataRate() const = 0;
148 148
149 // Internal states of loading and network. 149 // Internal states of loading and network.
150 virtual NetworkState networkState() const = 0; 150 virtual NetworkState networkState() const = 0;
151 virtual ReadyState readyState() const = 0; 151 virtual ReadyState readyState() const = 0;
152 152
153 virtual unsigned long long bytesLoaded() const = 0; 153 virtual unsigned long long bytesLoaded() const = 0;
154 virtual unsigned long long totalBytes() const = 0; 154 virtual unsigned long long totalBytes() const = 0;
155 155
156 virtual bool hasSingleSecurityOrigin() const = 0; 156 virtual bool hasSingleSecurityOrigin() const = 0;
157 virtual bool didPassCORSAccessCheck() const = 0;
157 virtual MovieLoadType movieLoadType() const = 0; 158 virtual MovieLoadType movieLoadType() const = 0;
158 159
159 virtual float mediaTimeForTimeValue(float timeValue) const = 0; 160 virtual float mediaTimeForTimeValue(float timeValue) const = 0;
160 161
161 virtual unsigned decodedFrameCount() const = 0; 162 virtual unsigned decodedFrameCount() const = 0;
162 virtual unsigned droppedFrameCount() const = 0; 163 virtual unsigned droppedFrameCount() const = 0;
163 virtual unsigned audioDecodedByteCount() const = 0; 164 virtual unsigned audioDecodedByteCount() const = 0;
164 virtual unsigned videoDecodedByteCount() const = 0; 165 virtual unsigned videoDecodedByteCount() const = 0;
165 166
166 // This function returns a pointer to a WebVideoFrame, which is 167 // This function returns a pointer to a WebVideoFrame, which is
(...skipping 25 matching lines...) Expand all
192 193
193 // Instuct WebMediaPlayer to enter/exit fullscreen. 194 // Instuct WebMediaPlayer to enter/exit fullscreen.
194 // Returns true if the player can enter fullscreen. 195 // Returns true if the player can enter fullscreen.
195 virtual bool enterFullscreen() { return false; } 196 virtual bool enterFullscreen() { return false; }
196 virtual void exitFullscreen() { } 197 virtual void exitFullscreen() { }
197 }; 198 };
198 199
199 } // namespace WebKit 200 } // namespace WebKit
200 201
201 #endif 202 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/MediaPlayerPrivate.h ('k') | Source/WebKit/chromium/src/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698