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

Side by Side Diff: third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.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 AuthenticatorResponse_h
6 #define AuthenticatorResponse_h
7
8 #include "core/dom/DOMArrayBuffer.h"
9 #include "platform/bindings/ScriptWrappable.h"
10
11 namespace blink {
12
13 class AuthenticatorResponse
14 : public GarbageCollectedFinalized<AuthenticatorResponse>,
15 public ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO();
17
18 public:
19 virtual ~AuthenticatorResponse() {}
Mike West 2017/06/30 08:06:36 Please move this under the static method.
kpaulhamus 2017/06/30 10:59:39 Done.
20
21 static AuthenticatorResponse* Create(DOMArrayBuffer* client_data_json) {
22 return new AuthenticatorResponse(client_data_json);
23 }
24
25 AuthenticatorResponse(DOMArrayBuffer* client_data_json)
26 : client_data_json_(client_data_json) {}
Mike West 2017/06/30 08:06:36 Consider making this protected, as I don't think w
kpaulhamus 2017/06/30 10:59:39 Done.
27
28 DOMArrayBuffer* clientDataJSON() const { return client_data_json_.Get(); }
29
30 DEFINE_INLINE_VIRTUAL_TRACE() { visitor->Trace(client_data_json_); }
31
32 private:
33 const Member<DOMArrayBuffer> client_data_json_;
34 };
35
36 } // namespace blink
37
38 #endif // AuthenticatorResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698