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

Side by Side Diff: remoting/host/security_key/security_key_ipc_server.cc

Issue 2468523003: Pass the desktop session ID to the remoting network process. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 #include "remoting/host/security_key/security_key_ipc_server.h" 5 #include "remoting/host/security_key/security_key_ipc_server.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 namespace remoting { 29 namespace remoting {
30 30
31 void SecurityKeyIpcServer::SetFactoryForTest( 31 void SecurityKeyIpcServer::SetFactoryForTest(
32 SecurityKeyIpcServerFactory* factory) { 32 SecurityKeyIpcServerFactory* factory) {
33 g_factory = factory; 33 g_factory = factory;
34 } 34 }
35 35
36 std::unique_ptr<SecurityKeyIpcServer> SecurityKeyIpcServer::Create( 36 std::unique_ptr<SecurityKeyIpcServer> SecurityKeyIpcServer::Create(
37 int connection_id, 37 int connection_id,
38 uint32_t peer_session_id, 38 ClientSessionDetails* client_session_details,
39 base::TimeDelta initial_connect_timeout, 39 base::TimeDelta initial_connect_timeout,
40 const SecurityKeyAuthHandler::SendMessageCallback& message_callback, 40 const SecurityKeyAuthHandler::SendMessageCallback& message_callback,
41 const base::Closure& done_callback) { 41 const base::Closure& done_callback) {
42 std::unique_ptr<SecurityKeyIpcServer> ipc_server = 42 std::unique_ptr<SecurityKeyIpcServer> ipc_server =
43 g_factory 43 g_factory
44 ? g_factory->Create(connection_id, peer_session_id, 44 ? g_factory->Create(connection_id, client_session_details,
45 initial_connect_timeout, message_callback, 45 initial_connect_timeout, message_callback,
46 done_callback) 46 done_callback)
47 : base::WrapUnique(new SecurityKeyIpcServerImpl( 47 : base::WrapUnique(new SecurityKeyIpcServerImpl(
48 connection_id, peer_session_id, initial_connect_timeout, 48 connection_id, client_session_details, initial_connect_timeout,
49 message_callback, done_callback)); 49 message_callback, done_callback));
50 50
51 return ipc_server; 51 return ipc_server;
52 } 52 }
53 53
54 } // namespace remoting 54 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/security_key/security_key_ipc_server.h ('k') | remoting/host/security_key/security_key_ipc_server_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698