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

Unified Diff: third_party/WebKit/Source/modules/webauth/PublicKeyCredential.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/PublicKeyCredential.cpp
diff --git a/third_party/WebKit/Source/modules/webauth/PublicKeyCredential.cpp b/third_party/WebKit/Source/modules/webauth/PublicKeyCredential.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..36a12c58832b27f9f050310d0080cfddabd82981
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webauth/PublicKeyCredential.cpp
@@ -0,0 +1,24 @@
+// 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/PublicKeyCredential.h"
+
+namespace blink {
+
+PublicKeyCredential* PublicKeyCredential::Create(
+ DOMArrayBuffer* raw_id,
+ AuthenticatorResponse* response) {
+ return new PublicKeyCredential(raw_id, response);
+}
+
+PublicKeyCredential::PublicKeyCredential(DOMArrayBuffer* raw_id,
+ AuthenticatorResponse* response)
+ : raw_id_(raw_id), response_(response) {}
+
+DEFINE_TRACE(PublicKeyCredential) {
+ visitor->Trace(raw_id_);
+ visitor->Trace(response_);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698