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

Side by Side Diff: third_party/WebKit/Source/modules/webauth/AuthenticatorAssertionResponse.h

Issue 2966523002: Blink-layer update to match WebAuthN spec (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef AuthenticatorAssertionResponse_h
6 #define AuthenticatorAssertionResponse_h
7
8 #include "core/dom/DOMArrayBuffer.h"
9 #include "modules/webauth/AuthenticatorResponse.h"
10 #include "platform/bindings/ScriptWrappable.h"
11
12 namespace blink {
13
14 class AuthenticatorAssertionResponse final : public AuthenticatorResponse {
15 DEFINE_WRAPPERTYPEINFO();
16
17 public:
18 static AuthenticatorAssertionResponse* Create(
19 DOMArrayBuffer* client_data_json,
20 DOMArrayBuffer* authenticator_data,
21 DOMArrayBuffer* signature) {
22 return new AuthenticatorAssertionResponse(client_data_json,
23 authenticator_data, signature);
24 }
25
26 AuthenticatorAssertionResponse(DOMArrayBuffer* client_data_json,
27 DOMArrayBuffer* authenticator_data,
28 DOMArrayBuffer* signature)
29 : AuthenticatorResponse(client_data_json),
30 authenticator_data_(authenticator_data),
31 signature_(signature) {}
Mike West 2017/06/30 08:06:35 Should this constructor be private?
kpaulhamus 2017/06/30 10:59:39 Done.
32
33 virtual ~AuthenticatorAssertionResponse() {}
Mike West 2017/06/30 08:06:35 I don't think you need this, since you define an e
kpaulhamus 2017/06/30 10:59:39 Done.
34
35 DOMArrayBuffer* authenticatorData() const {
36 return authenticator_data_.Get();
37 }
38 DOMArrayBuffer* signature() const { return signature_.Get(); }
39
40 DEFINE_INLINE_TRACE() {
41 AuthenticatorResponse::Trace(visitor);
42 visitor->Trace(authenticator_data_);
43 visitor->Trace(signature_);
44 }
45
46 private:
47 const Member<DOMArrayBuffer> authenticator_data_;
48 const Member<DOMArrayBuffer> signature_;
49 };
50
51 } // namespace blink
52
53 #endif // AuthenticatorAssertionResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698