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

Unified Diff: public/platform/WebBluetoothError.h

Issue 650613005: bluetooth: Initial WebBluetooth & WebBluetoothError. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Abandoned initial approach implementing BluetoothMock in Blink. Created 6 years, 2 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
« public/platform/Platform.h ('K') | « public/platform/WebBluetooth.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebBluetoothError.h
diff --git a/public/platform/WebPushError.h b/public/platform/WebBluetoothError.h
similarity index 60%
copy from public/platform/WebPushError.h
copy to public/platform/WebBluetoothError.h
index 408254b5cc7e8d252bbd2fee13f6b1476459a881..9bcb8bf9a472e1236c7787c316d0908559001c86 100644
--- a/public/platform/WebPushError.h
+++ b/public/platform/WebBluetoothError.h
@@ -2,21 +2,20 @@
// 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 WebBluetoothError_h
+#define WebBluetoothError_h
#include "WebString.h"
namespace blink {
-struct WebPushError {
+struct WebBluetoothError {
enum ErrorType {
- ErrorTypeAbort = 0,
- ErrorTypeUnknown,
- ErrorTypeLast = ErrorTypeUnknown
+ NotFoundError,
+ SecurityError
};
- WebPushError(ErrorType errorType, const WebString& message)
+ WebBluetoothError(ErrorType errorType, const WebString& message)
: errorType(errorType)
, message(message)
{
@@ -28,4 +27,4 @@ struct WebPushError {
} // namespace blink
-#endif // WebPushError_h
+#endif // WebBluetoothError_h
« public/platform/Platform.h ('K') | « public/platform/WebBluetooth.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698