Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h |
| diff --git a/third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h b/third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9599cf2cc52704387f48b86b344d44d5c15f8e4e |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/webauth/AuthenticatorResponse.h |
| @@ -0,0 +1,38 @@ |
| +// 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 AuthenticatorResponse_h |
| +#define AuthenticatorResponse_h |
| + |
| +#include "core/dom/DOMArrayBuffer.h" |
| +#include "platform/bindings/ScriptWrappable.h" |
| + |
| +namespace blink { |
| + |
| +class AuthenticatorResponse |
| + : public GarbageCollectedFinalized<AuthenticatorResponse>, |
| + public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| + public: |
| + 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.
|
| + |
| + static AuthenticatorResponse* Create(DOMArrayBuffer* client_data_json) { |
| + return new AuthenticatorResponse(client_data_json); |
| + } |
| + |
| + AuthenticatorResponse(DOMArrayBuffer* client_data_json) |
| + : 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.
|
| + |
| + DOMArrayBuffer* clientDataJSON() const { return client_data_json_.Get(); } |
| + |
| + DEFINE_INLINE_VIRTUAL_TRACE() { visitor->Trace(client_data_json_); } |
| + |
| + private: |
| + const Member<DOMArrayBuffer> client_data_json_; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // AuthenticatorResponse_h |