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

Unified Diff: third_party/WebKit/Source/modules/webauth/ScopedCredential.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/ScopedCredential.h
diff --git a/third_party/WebKit/Source/modules/webauth/ScopedCredential.h b/third_party/WebKit/Source/modules/webauth/ScopedCredential.h
deleted file mode 100644
index 00537f67f556db43c07c067f0071e6a30850d297..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/webauth/ScopedCredential.h
+++ /dev/null
@@ -1,54 +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 ScopedCredential_h
-#define ScopedCredential_h
-
-#include "core/dom/DOMArrayBuffer.h"
-#include "platform/bindings/ScriptWrappable.h"
-
-namespace blink {
-
-class ScopedCredentialType;
-
-class ScopedCredential final
- : public GarbageCollectedFinalized<ScopedCredential>,
- public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
-
- public:
- enum class ScopedCredentialType { SCOPEDCRED };
-
- static ScopedCredential* Create(const ScopedCredentialType type,
- DOMArrayBuffer* id) {
- return new ScopedCredential(type, id);
- }
-
- ScopedCredential(const ScopedCredentialType type, DOMArrayBuffer* id)
- : type_(type), id_(id) {}
-
- virtual ~ScopedCredential() {}
-
- String type() const {
- DCHECK_EQ(type_, ScopedCredentialType::SCOPEDCRED);
- return "ScopedCred";
- }
-
- DOMArrayBuffer* id() const { return id_.Get(); }
-
- ScopedCredentialType StringToCredentialType(const String& type) {
- // There is currently only one type
- return ScopedCredentialType::SCOPEDCRED;
- }
-
- DEFINE_INLINE_TRACE() { visitor->Trace(id_); }
-
- private:
- const ScopedCredentialType type_;
- const Member<DOMArrayBuffer> id_;
-};
-
-} // namespace blink
-
-#endif // ScopedCredential_h

Powered by Google App Engine
This is Rietveld 408576698