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

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

Issue 2966523002: Blink-layer update to match WebAuthN spec (Closed)
Patch Set: Modify browser-side impl and unittests. Address mkwst comments. 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"
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698