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

Unified Diff: third_party/WebKit/Source/modules/webauth/AuthenticatorAssertionResponse.cpp

Issue 2966523002: Blink-layer update to match WebAuthN spec (Closed)
Patch Set: Add ContectLifecycleObserver... part2 Created 3 years, 5 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/AuthenticatorAssertionResponse.cpp
diff --git a/third_party/WebKit/Source/modules/webauth/AuthenticatorAssertionResponse.cpp b/third_party/WebKit/Source/modules/webauth/AuthenticatorAssertionResponse.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..541f0a26d7a5cc1323befa3bffde1902288cb2e0
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webauth/AuthenticatorAssertionResponse.cpp
@@ -0,0 +1,33 @@
+// Copyright 2017 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.
+
+#include "modules/webauth/AuthenticatorAssertionResponse.h"
+
+namespace blink {
+
+AuthenticatorAssertionResponse* AuthenticatorAssertionResponse::Create(
+ DOMArrayBuffer* client_data_json,
+ DOMArrayBuffer* authenticator_data,
+ DOMArrayBuffer* signature) {
+ return new AuthenticatorAssertionResponse(client_data_json,
+ authenticator_data, signature);
+}
+
+AuthenticatorAssertionResponse::AuthenticatorAssertionResponse(
+ DOMArrayBuffer* client_data_json,
+ DOMArrayBuffer* authenticator_data,
+ DOMArrayBuffer* signature)
+ : AuthenticatorResponse(client_data_json),
+ authenticator_data_(authenticator_data),
+ signature_(signature) {}
+
+AuthenticatorAssertionResponse::~AuthenticatorAssertionResponse() {}
+
+DEFINE_TRACE(AuthenticatorAssertionResponse) {
+ visitor->Trace(authenticator_data_);
+ visitor->Trace(signature_);
+ AuthenticatorResponse::Trace(visitor);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698