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

Side by Side Diff: remoting/host/security_key/security_key_extension.h

Issue 2168303003: Removing 'AllowScopedIO' exception from SecurityKeyAuthHandlerLinux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp_dir
Patch Set: Fixing some comments Created 4 years, 4 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_ 5 #ifndef REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_
6 #define REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_ 6 #define REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
12 #include "remoting/host/host_extension.h" 13 #include "remoting/host/host_extension.h"
13 14
15 namespace base {
16 class SingleThreadTaskRunner;
17 } // namespace base
18
14 namespace remoting { 19 namespace remoting {
15 20
16 class ClientSessionDetails; 21 class ClientSessionDetails;
17 class HostExtensionSession; 22 class HostExtensionSession;
18 23
19 // SecurityKeyExtension extends HostExtension to enable Security Key support. 24 // SecurityKeyExtension extends HostExtension to enable Security Key support.
20 class SecurityKeyExtension : public HostExtension { 25 class SecurityKeyExtension : public HostExtension {
21 public: 26 public:
22 SecurityKeyExtension(); 27 explicit SecurityKeyExtension(
28 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
23 ~SecurityKeyExtension() override; 29 ~SecurityKeyExtension() override;
24 30
25 // HostExtension interface. 31 // HostExtension interface.
26 std::string capability() const override; 32 std::string capability() const override;
27 std::unique_ptr<HostExtensionSession> CreateExtensionSession( 33 std::unique_ptr<HostExtensionSession> CreateExtensionSession(
28 ClientSessionDetails* client_session_details, 34 ClientSessionDetails* client_session_details,
29 protocol::ClientStub* client_stub) override; 35 protocol::ClientStub* client_stub) override;
30 36
31 private: 37 private:
38 // Allows underlying auth handler to perform blocking file IO.
39 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
40
32 DISALLOW_COPY_AND_ASSIGN(SecurityKeyExtension); 41 DISALLOW_COPY_AND_ASSIGN(SecurityKeyExtension);
33 }; 42 };
34 43
35 } // namespace remoting 44 } // namespace remoting
36 45
37 #endif // REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_ 46 #endif // REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698