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

Side by Side Diff: remoting/host/remoting_me2me_host.cc

Issue 282063005: Pull out common code from client and host versions of ServerLogEntry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 this, host_id_, signal_strategy_.get(), key_pair_, 1192 this, host_id_, signal_strategy_.get(), key_pair_,
1193 directory_bot_jid_)); 1193 directory_bot_jid_));
1194 1194
1195 host_status_sender_.reset(new HostStatusSender( 1195 host_status_sender_.reset(new HostStatusSender(
1196 host_id_, signal_strategy_.get(), key_pair_, directory_bot_jid_)); 1196 host_id_, signal_strategy_.get(), key_pair_, directory_bot_jid_));
1197 1197
1198 host_change_notification_listener_.reset(new HostChangeNotificationListener( 1198 host_change_notification_listener_.reset(new HostChangeNotificationListener(
1199 this, host_id_, signal_strategy_.get(), directory_bot_jid_)); 1199 this, host_id_, signal_strategy_.get(), directory_bot_jid_));
1200 1200
1201 log_to_server_.reset( 1201 log_to_server_.reset(
1202 new LogToServer(host_->AsWeakPtr(), ServerLogEntry::ME2ME, 1202 new LogToServer(host_->AsWeakPtr(), protocol::ServerLogEntry::ME2ME,
1203 signal_strategy_.get(), directory_bot_jid_)); 1203 signal_strategy_.get(), directory_bot_jid_));
1204 1204
1205 // Set up repoting the host status notifications. 1205 // Set up repoting the host status notifications.
1206 #if defined(REMOTING_MULTI_PROCESS) 1206 #if defined(REMOTING_MULTI_PROCESS)
1207 host_event_logger_.reset( 1207 host_event_logger_.reset(
1208 new IpcHostEventLogger(host_->AsWeakPtr(), daemon_channel_.get())); 1208 new IpcHostEventLogger(host_->AsWeakPtr(), daemon_channel_.get()));
1209 #else // !defined(REMOTING_MULTI_PROCESS) 1209 #else // !defined(REMOTING_MULTI_PROCESS)
1210 host_event_logger_ = 1210 host_event_logger_ =
1211 HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName); 1211 HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName);
1212 #endif // !defined(REMOTING_MULTI_PROCESS) 1212 #endif // !defined(REMOTING_MULTI_PROCESS)
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 return exit_code; 1353 return exit_code;
1354 } 1354 }
1355 1355
1356 } // namespace remoting 1356 } // namespace remoting
1357 1357
1358 #if !defined(OS_WIN) 1358 #if !defined(OS_WIN)
1359 int main(int argc, char** argv) { 1359 int main(int argc, char** argv) {
1360 return remoting::HostMain(argc, argv); 1360 return remoting::HostMain(argc, argv);
1361 } 1361 }
1362 #endif // !defined(OS_WIN) 1362 #endif // !defined(OS_WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698