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

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

Issue 2085353004: Update GnubbyAuthHandler to use the current session ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host_extension
Patch Set: Fixing a non-windows build break and some additional cleanup 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 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_FAKE_IPC_GNUBBY_AUTH_HANDLER_H_ 5 #ifndef REMOTING_HOST_SECURITY_KEY_FAKE_IPC_GNUBBY_AUTH_HANDLER_H_
6 #define REMOTING_HOST_SECURITY_KEY_FAKE_IPC_GNUBBY_AUTH_HANDLER_H_ 6 #define REMOTING_HOST_SECURITY_KEY_FAKE_IPC_GNUBBY_AUTH_HANDLER_H_
7 7
8 #include "remoting/host/security_key/gnubby_auth_handler.h" 8 #include "remoting/host/security_key/gnubby_auth_handler.h"
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 FakeIpcGnubbyAuthHandler(); 28 FakeIpcGnubbyAuthHandler();
29 ~FakeIpcGnubbyAuthHandler() override; 29 ~FakeIpcGnubbyAuthHandler() override;
30 30
31 // GnubbyAuthHandler interface. 31 // GnubbyAuthHandler interface.
32 void CreateGnubbyConnection() override; 32 void CreateGnubbyConnection() override;
33 bool IsValidConnectionId(int gnubby_connection_id) const override; 33 bool IsValidConnectionId(int gnubby_connection_id) const override;
34 void SendClientResponse(int gnubby_connection_id, 34 void SendClientResponse(int gnubby_connection_id,
35 const std::string& response) override; 35 const std::string& response) override;
36 void SendErrorAndCloseConnection(int gnubby_connection_id) override; 36 void SendErrorAndCloseConnection(int gnubby_connection_id) override;
37 void SetSendMessageCallback(const SendMessageCallback& callback) override; 37 void SetSendMessageCallback(const SendMessageCallback& callback) override;
38 void SetSessionIdCallback(const SessionIdCallback& callback) override;
38 size_t GetActiveConnectionCountForTest() const override; 39 size_t GetActiveConnectionCountForTest() const override;
39 void SetRequestTimeoutForTest(base::TimeDelta timeout) override; 40 void SetRequestTimeoutForTest(base::TimeDelta timeout) override;
40 41
41 void set_ipc_security_key_channel_name( 42 void set_ipc_security_key_channel_name(
42 const std::string& ipc_security_key_channel_name) { 43 const std::string& ipc_security_key_channel_name) {
43 ipc_security_key_channel_name_ = ipc_security_key_channel_name; 44 ipc_security_key_channel_name_ = ipc_security_key_channel_name;
44 } 45 }
45 46
46 void set_ipc_server_channel_name(const std::string& ipc_server_channel_name) { 47 void set_ipc_server_channel_name(const std::string& ipc_server_channel_name) {
47 ipc_server_channel_name_ = ipc_server_channel_name; 48 ipc_server_channel_name_ = ipc_server_channel_name;
(...skipping 15 matching lines...) Expand all
63 // IPC Clients connect to this channel first to receive their own unique IPC 64 // IPC Clients connect to this channel first to receive their own unique IPC
64 // channel to start a security key forwarding session on. 65 // channel to start a security key forwarding session on.
65 std::unique_ptr<IPC::Channel> ipc_server_channel_; 66 std::unique_ptr<IPC::Channel> ipc_server_channel_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(FakeIpcGnubbyAuthHandler); 68 DISALLOW_COPY_AND_ASSIGN(FakeIpcGnubbyAuthHandler);
68 }; 69 };
69 70
70 } // namespace remoting 71 } // namespace remoting
71 72
72 #endif // REMOTING_HOST_SECURITY_KEY_FAKE_IPC_GNUBBY_AUTH_HANDLER_H_ 73 #endif // REMOTING_HOST_SECURITY_KEY_FAKE_IPC_GNUBBY_AUTH_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698