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

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

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 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_REMOTE_SECURITY_KEY_IPC_SERVER_IMPL_H_ 5 #ifndef REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_SERVER_IMPL_H_
6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_SERVER_IMPL_H_ 6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_SERVER_IMPL_H_
7 7
8 #include "remoting/host/security_key/remote_security_key_ipc_server.h" 8 #include "remoting/host/security_key/remote_security_key_ipc_server.h"
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 12
12 #include "base/callback.h" 13 #include "base/callback.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "base/timer/timer.h" 16 #include "base/timer/timer.h"
17 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
18 18
19 namespace base { 19 namespace base {
20 class TimeDelta; 20 class TimeDelta;
21 } // base 21 } // base
22 22
23 namespace IPC { 23 namespace IPC {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Used to detect timeouts and disconnect the IPC channel. 66 // Used to detect timeouts and disconnect the IPC channel.
67 base::OneShotTimer timer_; 67 base::OneShotTimer timer_;
68 68
69 // Used to signal that the IPC channel should be disconnected. 69 // Used to signal that the IPC channel should be disconnected.
70 base::Closure done_callback_; 70 base::Closure done_callback_;
71 71
72 // Used to pass a security key request on to the remote client. 72 // Used to pass a security key request on to the remote client.
73 GnubbyAuthHandler::SendMessageCallback message_callback_; 73 GnubbyAuthHandler::SendMessageCallback message_callback_;
74 74
75 // Used for sending/receiving security key messages between processes. 75 // Used for sending/receiving security key messages between processes.
76 scoped_ptr<IPC::Channel> ipc_channel_; 76 std::unique_ptr<IPC::Channel> ipc_channel_;
77 77
78 // Ensures RemoteSecurityKeyIpcServerImpl methods are called on the same 78 // Ensures RemoteSecurityKeyIpcServerImpl methods are called on the same
79 // thread. 79 // thread.
80 base::ThreadChecker thread_checker_; 80 base::ThreadChecker thread_checker_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(RemoteSecurityKeyIpcServerImpl); 82 DISALLOW_COPY_AND_ASSIGN(RemoteSecurityKeyIpcServerImpl);
83 }; 83 };
84 84
85 } // namespace remoting 85 } // namespace remoting
86 86
87 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_SERVER_IMPL_H_ 87 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_SERVER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698