OLD | NEW |
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_REMOTE_SECURITY_KEY_IPC_CLIENT_H_ | 5 #ifndef REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CLIENT_H_ |
6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CLIENT_H_ | 6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CLIENT_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/callback.h" | 11 #include "base/callback.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
15 | 15 |
16 namespace IPC { | 16 namespace IPC { |
17 class Channel; | 17 class Channel; |
18 class Message; | 18 class Message; |
19 } // IPC | 19 } // IPC |
20 | 20 |
21 namespace remoting { | 21 namespace remoting { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Signaled when the IPC connection is ready for security key requests. | 91 // Signaled when the IPC connection is ready for security key requests. |
92 base::Closure connection_ready_callback_; | 92 base::Closure connection_ready_callback_; |
93 | 93 |
94 // Signaled when an error occurs in either the IPC channel or communication. | 94 // Signaled when an error occurs in either the IPC channel or communication. |
95 base::Closure connection_error_callback_; | 95 base::Closure connection_error_callback_; |
96 | 96 |
97 // Signaled when a security key response has been received. | 97 // Signaled when a security key response has been received. |
98 ResponseCallback response_callback_; | 98 ResponseCallback response_callback_; |
99 | 99 |
100 // Used for sending/receiving security key messages between processes. | 100 // Used for sending/receiving security key messages between processes. |
101 scoped_ptr<IPC::Channel> ipc_channel_; | 101 std::unique_ptr<IPC::Channel> ipc_channel_; |
102 | 102 |
103 base::ThreadChecker thread_checker_; | 103 base::ThreadChecker thread_checker_; |
104 | 104 |
105 base::WeakPtrFactory<RemoteSecurityKeyIpcClient> weak_factory_; | 105 base::WeakPtrFactory<RemoteSecurityKeyIpcClient> weak_factory_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(RemoteSecurityKeyIpcClient); | 107 DISALLOW_COPY_AND_ASSIGN(RemoteSecurityKeyIpcClient); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace remoting | 110 } // namespace remoting |
111 | 111 |
112 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CLIENT_H_ | 112 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CLIENT_H_ |
OLD | NEW |