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

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

Issue 2533863002: Add WebAuthn bindings and client interface. (Closed)
Patch Set: Layout test expected file tweaks Created 3 years, 11 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/ScopedCredentialInfo.h
diff --git a/third_party/WebKit/Source/modules/webauth/ScopedCredentialInfo.h b/third_party/WebKit/Source/modules/webauth/ScopedCredentialInfo.h
new file mode 100644
index 0000000000000000000000000000000000000000..6291e32cc88931ae11e962caf207d3427a0d6ece
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webauth/ScopedCredentialInfo.h
@@ -0,0 +1,44 @@
+// 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 ScopedCredentialInfo_h
+#define ScopedCredentialInfo_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "core/dom/DOMArrayBuffer.h"
+
+namespace blink {
+
+class ScopedCredentialInfo final
+ : public GarbageCollectedFinalized<ScopedCredentialInfo>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static ScopedCredentialInfo* create(DOMArrayBuffer* clientData,
+ DOMArrayBuffer* attestation) {
+ return new ScopedCredentialInfo(clientData, attestation);
+ }
+
+ ScopedCredentialInfo(DOMArrayBuffer* clientData, DOMArrayBuffer* attestation)
+ : m_clientData(clientData), m_attestation(attestation) {}
+
+ virtual ~ScopedCredentialInfo() {}
+
+ DOMArrayBuffer* clientData() const { return m_clientData.get(); }
+ DOMArrayBuffer* attestation() const { return m_attestation.get(); }
+
+ DEFINE_INLINE_TRACE() {
+ visitor->trace(m_clientData);
+ visitor->trace(m_attestation);
+ }
+
+ private:
+ const Member<DOMArrayBuffer> m_clientData;
+ const Member<DOMArrayBuffer> m_attestation;
+};
+
+} // namespace blink
+
+#endif // ScopedCredentialInfo_h

Powered by Google App Engine
This is Rietveld 408576698