| 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 #include "remoting/host/host_event_logger.h" | 5 #include "remoting/host/host_event_logger.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 9 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 10 #include "net/base/ip_endpoint.h" | 11 #include "net/base/ip_endpoint.h" |
| 11 #include "remoting/host/host_status_monitor.h" | 12 #include "remoting/host/host_status_monitor.h" |
| 12 #include "remoting/host/host_status_observer.h" | 13 #include "remoting/host/host_status_observer.h" |
| 13 #include "remoting/protocol/transport.h" | 14 #include "remoting/protocol/transport.h" |
| 14 | 15 |
| 15 // Included here, since the #define for LOG_USER in syslog.h conflicts with the | 16 // Included here, since the #define for LOG_USER in syslog.h conflicts with the |
| 16 // constants in base/logging.h, and this source file should use the version in | 17 // constants in base/logging.h, and this source file should use the version in |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 103 } |
| 103 | 104 |
| 104 // static | 105 // static |
| 105 scoped_ptr<HostEventLogger> HostEventLogger::Create( | 106 scoped_ptr<HostEventLogger> HostEventLogger::Create( |
| 106 base::WeakPtr<HostStatusMonitor> monitor, | 107 base::WeakPtr<HostStatusMonitor> monitor, |
| 107 const std::string& application_name) { | 108 const std::string& application_name) { |
| 108 return make_scoped_ptr(new HostEventLoggerPosix(monitor, application_name)); | 109 return make_scoped_ptr(new HostEventLoggerPosix(monitor, application_name)); |
| 109 } | 110 } |
| 110 | 111 |
| 111 } // namespace remoting | 112 } // namespace remoting |
| OLD | NEW |