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