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

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

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.h
diff --git a/third_party/WebKit/Source/modules/webauth/PublicKeyCredential.h b/third_party/WebKit/Source/modules/webauth/PublicKeyCredential.h
new file mode 100644
index 0000000000000000000000000000000000000000..d6c4e73dfe8c383447da76f587a827c5b2f8e3c7
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webauth/PublicKeyCredential.h
@@ -0,0 +1,41 @@
+// 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.
+
+#ifndef PublicKeyCredential_h
+#define PublicKeyCredential_h
+
+#include "core/dom/DOMArrayBuffer.h"
+#include "modules/ModulesExport.h"
+#include "modules/webauth/AuthenticatorResponse.h"
+#include "platform/bindings/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class AuthenticatorResponse;
+
+class MODULES_EXPORT PublicKeyCredential final
+ : public GarbageCollected<PublicKeyCredential>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static PublicKeyCredential* Create(DOMArrayBuffer* raw_id,
+ AuthenticatorResponse*);
+
+ DOMArrayBuffer* rawId() const { return raw_id_.Get(); }
+ AuthenticatorResponse* response() const { return response_.Get(); }
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ explicit PublicKeyCredential(DOMArrayBuffer* raw_id, AuthenticatorResponse*);
+
+ const Member<DOMArrayBuffer> raw_id_;
+ const Member<AuthenticatorResponse> response_;
+};
+
+} // namespace blink
+
+#endif // PublicKeyCredential_h

Powered by Google App Engine
This is Rietveld 408576698