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

Unified Diff: remoting/host/security_key/security_key_extension.h

Issue 2167853004: Removing 'AllowScopedIO' exception from SecurityKeyAuthHandlerLinux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp_dir
Patch Set: More fixes! Created 4 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/security_key/security_key_extension.h
diff --git a/remoting/host/security_key/security_key_extension.h b/remoting/host/security_key/security_key_extension.h
index 4f4fc4c249612b051aeff67bf1a54634cb3a9710..0075d80fd7f5f36844bb59f7011d6b50e11cc515 100644
--- a/remoting/host/security_key/security_key_extension.h
+++ b/remoting/host/security_key/security_key_extension.h
@@ -9,8 +9,13 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "remoting/host/host_extension.h"
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
+
namespace remoting {
class ClientSessionDetails;
@@ -19,7 +24,8 @@ class HostExtensionSession;
// SecurityKeyExtension extends HostExtension to enable Security Key support.
class SecurityKeyExtension : public HostExtension {
public:
- SecurityKeyExtension();
+ explicit SecurityKeyExtension(
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
~SecurityKeyExtension() override;
// HostExtension interface.
@@ -29,6 +35,9 @@ class SecurityKeyExtension : public HostExtension {
protocol::ClientStub* client_stub) override;
private:
+ // Allows underlying auth handlers to perform blocking File IO on UDS sockets.
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
+
DISALLOW_COPY_AND_ASSIGN(SecurityKeyExtension);
};

Powered by Google App Engine
This is Rietveld 408576698