OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file implements a standalone host process for Me2Me, which is currently | 5 // This file implements a standalone host process for Me2Me, which is currently |
6 // used for the Linux-only Virtual Me2Me build. | 6 // used for the Linux-only Virtual Me2Me build. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 host_->Start(); | 162 host_->Start(); |
163 | 163 |
164 // Create authenticator factory. | 164 // Create authenticator factory. |
165 // | 165 // |
166 // TODO(sergeyu): Currently empty PIN is used. This is a temporary | 166 // TODO(sergeyu): Currently empty PIN is used. This is a temporary |
167 // hack pending us adding a way to set a PIN. crbug.com/105214 . | 167 // hack pending us adding a way to set a PIN. crbug.com/105214 . |
168 scoped_ptr<protocol::AuthenticatorFactory> factory( | 168 scoped_ptr<protocol::AuthenticatorFactory> factory( |
169 new protocol::Me2MeHostAuthenticatorFactory( | 169 new protocol::Me2MeHostAuthenticatorFactory( |
170 xmpp_login_, key_pair_.GenerateCertificate(), | 170 xmpp_login_, key_pair_.GenerateCertificate(), |
171 key_pair_.private_key(), "")); | 171 *key_pair_.private_key(), "")); |
172 host_->SetAuthenticatorFactory(factory.Pass()); | 172 host_->SetAuthenticatorFactory(factory.Pass()); |
173 } | 173 } |
174 | 174 |
175 MessageLoop message_loop_; | 175 MessageLoop message_loop_; |
176 base::Thread file_io_thread_; | 176 base::Thread file_io_thread_; |
177 remoting::ChromotingHostContext context_; | 177 remoting::ChromotingHostContext context_; |
178 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 178 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
179 | 179 |
180 FilePath auth_config_path_; | 180 FilePath auth_config_path_; |
181 FilePath host_config_path_; | 181 FilePath host_config_path_; |
(...skipping 27 matching lines...) Expand all Loading... |
209 // Continue windows, though these should not be used for the Me2Me case | 209 // Continue windows, though these should not be used for the Me2Me case |
210 // (crbug.com/104377). | 210 // (crbug.com/104377). |
211 gfx::GtkInitFromCommandLine(*cmd_line); | 211 gfx::GtkInitFromCommandLine(*cmd_line); |
212 #endif // TOOLKIT_USES_GTK | 212 #endif // TOOLKIT_USES_GTK |
213 | 213 |
214 remoting::HostProcess me2me_host; | 214 remoting::HostProcess me2me_host; |
215 me2me_host.InitWithCommandLine(cmd_line); | 215 me2me_host.InitWithCommandLine(cmd_line); |
216 | 216 |
217 return me2me_host.Run(); | 217 return me2me_host.Run(); |
218 } | 218 } |
OLD | NEW |