Index: public/platform/modules/presentation/WebPresentationError.h |
diff --git a/public/platform/modules/push_messaging/WebPushError.h b/public/platform/modules/presentation/WebPresentationError.h |
similarity index 51% |
copy from public/platform/modules/push_messaging/WebPushError.h |
copy to public/platform/modules/presentation/WebPresentationError.h |
index 912e30bedd4eea1cd8a561717ae1c15b98627586..7a7c7a6ffca7d24e4cbae8f74e13fc610edc94ea 100644 |
--- a/public/platform/modules/push_messaging/WebPushError.h |
+++ b/public/platform/modules/presentation/WebPresentationError.h |
@@ -1,24 +1,24 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef WebPushError_h |
-#define WebPushError_h |
+#ifndef WebPresentationError_h |
+#define WebPresentationError_h |
#include "public/platform/WebString.h" |
namespace blink { |
-struct WebPushError { |
+struct WebPresentationError { |
enum ErrorType { |
- ErrorTypeAbort = 0, |
- ErrorTypeNetwork, |
- ErrorTypeNotFound, |
+ ErrorTypeNoAvailableScreens = 0, |
+ ErrorTypeSessionRequestCancelled, |
+ ErrorTypeNoPresentationFound, |
ErrorTypeUnknown, |
ErrorTypeLast = ErrorTypeUnknown |
}; |
- WebPushError(ErrorType errorType, const WebString& message) |
+ WebPresentationError(ErrorType errorType, const WebString& message) |
: errorType(errorType) |
, message(message) |
{ |
@@ -30,4 +30,4 @@ struct WebPushError { |
} // namespace blink |
-#endif // WebPushError_h |
+#endif // WebPresentationError_h |