Chromium Code Reviews| Index: Source/modules/bluetooth/BluetoothError.h |
| diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/bluetooth/BluetoothError.h |
| similarity index 56% |
| copy from Source/modules/push_messaging/PushError.h |
| copy to Source/modules/bluetooth/BluetoothError.h |
| index 78aed14cf3dc0c6b5f6f88320b6d6e3bc12efb9d..da71d670edb0aea3754577a04a1f0c274da17098 100644 |
| --- a/Source/modules/push_messaging/PushError.h |
| +++ b/Source/modules/bluetooth/BluetoothError.h |
| @@ -2,29 +2,29 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef PushError_h |
| -#define PushError_h |
| +#ifndef BluetoothError_h |
| +#define BluetoothError_h |
| #include "core/dom/DOMException.h" |
| #include "platform/heap/Handle.h" |
| -#include "public/platform/WebPushError.h" |
| namespace blink { |
| class ScriptPromiseResolver; |
| +struct WebBluetoothError; |
|
scheib
2014/10/19 03:54:21
I will add a class comment here:
// BluetoothErro
|
| -class PushError { |
| - WTF_MAKE_NONCOPYABLE(PushError); |
| +class BluetoothError { |
| + WTF_MAKE_NONCOPYABLE(BluetoothError); |
| public: |
| // For CallbackPromiseAdapter. |
| - typedef WebPushError WebType; |
| - static PassRefPtrWillBeRawPtr<DOMException> take(ScriptPromiseResolver*, WebType* webErrorRaw); |
| - static void dispose(WebType* webErrorRaw); |
| + typedef WebBluetoothError WebType; |
| + static PassRefPtrWillBeRawPtr<DOMException> take(ScriptPromiseResolver*, WebBluetoothError*); |
| + static void dispose(blink::WebBluetoothError*); |
| private: |
| - PushError() WTF_DELETED_FUNCTION; |
| + BluetoothError() WTF_DELETED_FUNCTION; |
| }; |
| } // namespace blink |
| -#endif // PushError_h |
| +#endif // BluetoothError_h |