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

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

Issue 10533083: Merge 119569 - [chromium] Add a WebKit::WebMediaPlayer::CORSMode enum in preparation for 88349 (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
« no previous file with comments | « no previous file | no next file » | 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 }; 93 };
94 94
95 // Represents synchronous exceptions that can be thrown from the Encrypted 95 // Represents synchronous exceptions that can be thrown from the Encrypted
96 // Media methods. This is different from the asynchronous MediaKeyError. 96 // Media methods. This is different from the asynchronous MediaKeyError.
97 enum MediaKeyException { 97 enum MediaKeyException {
98 MediaKeyExceptionNoError, 98 MediaKeyExceptionNoError,
99 MediaKeyExceptionInvalidPlayerState, 99 MediaKeyExceptionInvalidPlayerState,
100 MediaKeyExceptionKeySystemNotSupported, 100 MediaKeyExceptionKeySystemNotSupported,
101 }; 101 };
102 102
103 enum CORSMode {
104 CORSModeUnspecified,
105 CORSModeAnonymous,
106 CORSModeUseCredentials,
107 };
108
103 virtual ~WebMediaPlayer() {} 109 virtual ~WebMediaPlayer() {}
104 110
105 virtual void load(const WebURL&) = 0; 111 virtual void load(const WebURL&) = 0;
106 virtual void cancelLoad() = 0; 112 virtual void cancelLoad() = 0;
107 113
108 // Playback controls. 114 // Playback controls.
109 virtual void play() = 0; 115 virtual void play() = 0;
110 virtual void pause() = 0; 116 virtual void pause() = 0;
111 virtual bool supportsFullscreen() const = 0; 117 virtual bool supportsFullscreen() const = 0;
112 virtual bool supportsSave() const = 0; 118 virtual bool supportsSave() const = 0;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 192
187 // Instuct WebMediaPlayer to enter/exit fullscreen. 193 // Instuct WebMediaPlayer to enter/exit fullscreen.
188 // Returns true if the player can enter fullscreen. 194 // Returns true if the player can enter fullscreen.
189 virtual bool enterFullscreen() { return false; } 195 virtual bool enterFullscreen() { return false; }
190 virtual void exitFullscreen() { } 196 virtual void exitFullscreen() { }
191 }; 197 };
192 198
193 } // namespace WebKit 199 } // namespace WebKit
194 200
195 #endif 201 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698