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

Unified Diff: third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h

Issue 2966523002: Blink-layer update to match WebAuthN spec (Closed)
Patch Set: Modify browser-side impl and unittests. Address mkwst comments. Created 3 years, 6 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: third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h
diff --git a/third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h b/third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h
new file mode 100644
index 0000000000000000000000000000000000000000..46e1636db221c6f3be869b7c622f0e26d5294b31
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h
@@ -0,0 +1,39 @@
+// Copyright 2016 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 AuthenticatorResponse_h
+#define AuthenticatorResponse_h
+
+#include "core/dom/DOMArrayBuffer.h"
+#include "platform/bindings/ScriptWrappable.h"
engedy 2017/07/05 18:51:05 Please add `#include "platform/heap/Handle.h"` in
kpaulhamus 2017/07/12 21:21:46 Done.
+
+namespace blink {
+
+class AuthenticatorResponse
engedy 2017/07/05 18:51:04 optional nit: I wonder if most of these classes sh
engedy 2017/07/10 14:32:36 Short answer: yes.
kpaulhamus 2017/07/12 21:21:46 Done.
+ : public GarbageCollectedFinalized<AuthenticatorResponse>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static AuthenticatorResponse* Create(DOMArrayBuffer* client_data_json) {
+ return new AuthenticatorResponse(client_data_json);
+ }
+
+ virtual ~AuthenticatorResponse() {}
+
+ DOMArrayBuffer* clientDataJSON() const { return client_data_json_.Get(); }
+
+ DEFINE_INLINE_VIRTUAL_TRACE() { visitor->Trace(client_data_json_); }
+
+ protected:
+ AuthenticatorResponse(DOMArrayBuffer* client_data_json)
engedy 2017/07/05 18:51:04 nit: explicit
engedy 2017/07/05 18:51:04 optional nit: In Chromium-land these constructor/d
engedy 2017/07/10 14:32:36 I talked to jochen@, and he tells me these should
kpaulhamus 2017/07/12 21:21:46 K, I made impl files for AuthenticatorResponse, Au
kpaulhamus 2017/07/12 21:21:46 Done.
engedy 2017/07/13 11:33:53 Yep, that's exactly it, thanks!
+ : client_data_json_(client_data_json) {}
+
+ private:
+ const Member<DOMArrayBuffer> client_data_json_;
+};
+
+} // namespace blink
+
+#endif // AuthenticatorResponse_h

Powered by Google App Engine
This is Rietveld 408576698