OLD | NEW |
---|---|
(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" | |
engedy
2017/07/05 18:51:05
Please add `#include "platform/heap/Handle.h"` in
kpaulhamus
2017/07/12 21:21:46
Done.
| |
10 | |
11 namespace blink { | |
12 | |
13 class AuthenticatorResponse | |
engedy
2017/07/05 18:51:04
optional nit: I wonder if most of these classes sh
engedy
2017/07/10 14:32:36
Short answer: yes.
kpaulhamus
2017/07/12 21:21:46
Done.
| |
14 : public GarbageCollectedFinalized<AuthenticatorResponse>, | |
15 public ScriptWrappable { | |
16 DEFINE_WRAPPERTYPEINFO(); | |
17 | |
18 public: | |
19 static AuthenticatorResponse* Create(DOMArrayBuffer* client_data_json) { | |
20 return new AuthenticatorResponse(client_data_json); | |
21 } | |
22 | |
23 virtual ~AuthenticatorResponse() {} | |
24 | |
25 DOMArrayBuffer* clientDataJSON() const { return client_data_json_.Get(); } | |
26 | |
27 DEFINE_INLINE_VIRTUAL_TRACE() { visitor->Trace(client_data_json_); } | |
28 | |
29 protected: | |
30 AuthenticatorResponse(DOMArrayBuffer* client_data_json) | |
engedy
2017/07/05 18:51:04
nit: explicit
engedy
2017/07/05 18:51:04
optional nit: In Chromium-land these constructor/d
engedy
2017/07/10 14:32:36
I talked to jochen@, and he tells me these should
kpaulhamus
2017/07/12 21:21:46
K, I made impl files for AuthenticatorResponse, Au
kpaulhamus
2017/07/12 21:21:46
Done.
engedy
2017/07/13 11:33:53
Yep, that's exactly it, thanks!
| |
31 : client_data_json_(client_data_json) {} | |
32 | |
33 private: | |
34 const Member<DOMArrayBuffer> client_data_json_; | |
35 }; | |
36 | |
37 } // namespace blink | |
38 | |
39 #endif // AuthenticatorResponse_h | |
OLD | NEW |