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

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

Issue 1855613002: Adding the RemoteSecurityKeyMessageHandler class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing feedback Created 4 years, 8 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
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/security_key/fake_remote_security_key_ipc_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/security_key/fake_remote_security_key_ipc_client.h
diff --git a/remoting/host/security_key/fake_remote_security_key_ipc_client.h b/remoting/host/security_key/fake_remote_security_key_ipc_client.h
index 748597f3cbe909eacb8cbe59fa894e5021f4d100..9734470bbb322bda099c9d53ecabbb76b2cbf3f9 100644
--- a/remoting/host/security_key/fake_remote_security_key_ipc_client.h
+++ b/remoting/host/security_key/fake_remote_security_key_ipc_client.h
@@ -10,6 +10,7 @@
#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "remoting/host/security_key/remote_security_key_ipc_client.h"
namespace IPC {
@@ -45,6 +46,8 @@ class FakeRemoteSecurityKeyIpcClient : public RemoteSecurityKeyIpcClient {
// an IPC channel for testing.
void SendSecurityKeyRequestViaIpc(const std::string& request_payload);
+ base::WeakPtr<FakeRemoteSecurityKeyIpcClient> AsWeakPtr();
+
const std::string& last_message_received() const {
return last_message_received_;
}
@@ -99,6 +102,8 @@ class FakeRemoteSecurityKeyIpcClient : public RemoteSecurityKeyIpcClient {
// Value returned by SendSecurityKeyRequest() method.
std::string security_key_response_payload_;
+ base::WeakPtrFactory<FakeRemoteSecurityKeyIpcClient> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(FakeRemoteSecurityKeyIpcClient);
};
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/security_key/fake_remote_security_key_ipc_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698