Chromium Code Reviews| 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" | |
| 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 | |
| OLD | NEW |