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

Unified Diff: third_party/WebKit/Source/modules/webauth/AuthenticationAssertion.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/AuthenticationAssertion.h
diff --git a/third_party/WebKit/Source/modules/webauth/AuthenticationAssertion.h b/third_party/WebKit/Source/modules/webauth/AuthenticationAssertion.h
deleted file mode 100644
index d6603dda8fb2719724aebd0a432806ea480a5963..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/webauth/AuthenticationAssertion.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// 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 AuthenticationAssertion_h
-#define AuthenticationAssertion_h
-
-#include "core/dom/DOMArrayBuffer.h"
-#include "modules/webauth/ScopedCredential.h"
-#include "platform/bindings/ScriptWrappable.h"
-
-namespace blink {
-
-class AuthenticationAssertion final
- : public GarbageCollectedFinalized<AuthenticationAssertion>,
- public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
-
- public:
- static AuthenticationAssertion* Create(ScopedCredential* credential,
- DOMArrayBuffer* client_data,
- DOMArrayBuffer* authenticator_data,
- DOMArrayBuffer* signature) {
- return new AuthenticationAssertion(credential, client_data,
- authenticator_data, signature);
- }
-
- AuthenticationAssertion(ScopedCredential* credential,
- DOMArrayBuffer* client_data,
- DOMArrayBuffer* authenticator_data,
- DOMArrayBuffer* signature)
- : credential_(credential),
- client_data_(client_data),
- authenticator_data_(authenticator_data),
- signature_(signature) {}
-
- virtual ~AuthenticationAssertion() {}
-
- ScopedCredential* credential() const { return credential_.Get(); }
- DOMArrayBuffer* clientData() const { return client_data_.Get(); }
- DOMArrayBuffer* authenticatorData() const {
- return authenticator_data_.Get();
- }
- DOMArrayBuffer* signature() const { return signature_.Get(); }
-
- DEFINE_INLINE_TRACE() {
- visitor->Trace(credential_);
- visitor->Trace(client_data_);
- visitor->Trace(authenticator_data_);
- visitor->Trace(signature_);
- }
-
- private:
- const Member<ScopedCredential> credential_;
- const Member<DOMArrayBuffer> client_data_;
- const Member<DOMArrayBuffer> authenticator_data_;
- const Member<DOMArrayBuffer> signature_;
-};
-
-} // namespace blink
-
-#endif // AuthenticationAssertion_h

Powered by Google App Engine
This is Rietveld 408576698