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

Unified Diff: public/platform/WebSetSinkIdError.h

Issue 1183803005: Add error struct to support the setSinkId operation for WebMediaPlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename ErrorTypeObsolete to ErrorTypeAbort Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebSetSinkIdError.h
diff --git a/public/platform/modules/background_sync/WebSyncError.h b/public/platform/WebSetSinkIdError.h
similarity index 53%
copy from public/platform/modules/background_sync/WebSyncError.h
copy to public/platform/WebSetSinkIdError.h
index cf537ad304dd119a19d82831846dafced3270600..557c48873748224c4cbd61fcd2b43af0899365d3 100644
--- a/public/platform/modules/background_sync/WebSyncError.h
+++ b/public/platform/WebSetSinkIdError.h
@@ -2,23 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebSyncError_h
-#define WebSyncError_h
+#ifndef WebSetSinkIdError_h
+#define WebSetSinkIdError_h
#include "public/platform/WebString.h"
namespace blink {
-struct WebSyncError {
+struct WebSetSinkIdError {
enum ErrorType {
- ErrorTypeAbort = 0,
- ErrorTypeNoPermission,
- ErrorTypeNotFound,
- ErrorTypeUnknown,
- ErrorTypeLast = ErrorTypeUnknown
+ ErrorTypeNotFound = 1,
+ ErrorTypeSecurity,
+ ErrorTypeAbort,
+ ErrorTypeNotSupported,
+ ErrorTypeLast = ErrorTypeNotSupported
};
- WebSyncError(ErrorType errorType, const WebString& message)
+ WebSetSinkIdError(ErrorType errorType, const WebString& message)
: errorType(errorType)
, message(message)
{
@@ -30,4 +30,4 @@ struct WebSyncError {
} // namespace blink
-#endif // WebSyncError_h
+#endif // WebSetSinkIdError_h
« 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