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

Unified Diff: Source/core/dom/AutocompleteError.h

Issue 228783007: rAc: make requestAutocomplete() return a promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge upstream Created 6 years, 8 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
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

Powered by Google App Engine
This is Rietveld 408576698