| Index: Source/core/dom/AutocompleteError.h
|
| diff --git a/Source/modules/crypto/AesKeyAlgorithm.h b/Source/core/dom/AutocompleteError.h
|
| similarity index 78%
|
| copy from Source/modules/crypto/AesKeyAlgorithm.h
|
| copy to Source/core/dom/AutocompleteError.h
|
| index f3d91ef6f3f157a27c17678c7c0168ad46673536..00c46047afc62a535811bc9060e399c32608d920 100644
|
| --- a/Source/modules/crypto/AesKeyAlgorithm.h
|
| +++ b/Source/core/dom/AutocompleteError.h
|
| @@ -28,32 +28,30 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef AesKeyAlgorithm_h
|
| -#define AesKeyAlgorithm_h
|
| +#ifndef AutocompleteError_h
|
| +#define AutocompleteError_h
|
|
|
| -#include "bindings/v8/ScriptWrappable.h"
|
| +#include "core/dom/DOMException.h"
|
| #include "heap/Handle.h"
|
| -#include "modules/crypto/KeyAlgorithm.h"
|
| -#include "wtf/Forward.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
|
|
| namespace WebCore {
|
|
|
| -class AesKeyAlgorithm : public KeyAlgorithm {
|
| +class AutocompleteError : public DOMException {
|
| public:
|
| - static AesKeyAlgorithm* create(const blink::WebCryptoKeyAlgorithm&);
|
| + static PassRefPtrWillBeRawPtr<AutocompleteError> create(const String& reason)
|
| + {
|
| + return adoptRefWillBeNoop(new AutocompleteError(reason));
|
| + }
|
|
|
| - unsigned short length();
|
| -
|
| - virtual void trace(Visitor*) OVERRIDE;
|
| + const String& reason() const { return m_reason; }
|
|
|
| private:
|
| - explicit AesKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
|
| + explicit AutocompleteError(const String& reason);
|
| + const String m_reason;
|
| };
|
|
|
| -DEFINE_KEY_ALGORITHM_TYPE_CASTS(AesKeyAlgorithm);
|
| -
|
| } // namespace WebCore
|
|
|
| -#endif
|
| +#endif // AutocompleteError_h
|
|
|