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 <stddef.h> | 7 #include <stddef.h> |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "net/base/ip_endpoint.h" | 19 #include "net/base/ip_endpoint.h" |
20 #include "remoting/host/host_status_monitor.h" | 20 #include "remoting/host/host_status_monitor.h" |
21 #include "remoting/host/host_status_observer.h" | 21 #include "remoting/host/host_status_observer.h" |
22 #include "remoting/host/win/remoting_host_messages.h" | 22 #include "remoting/host/remoting_host_messages.h" |
23 #include "remoting/protocol/transport.h" | 23 #include "remoting/protocol/transport.h" |
24 | 24 |
25 namespace remoting { | 25 namespace remoting { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 class HostEventLoggerWin : public HostEventLogger, public HostStatusObserver { | 29 class HostEventLoggerWin : public HostEventLogger, public HostStatusObserver { |
30 public: | 30 public: |
31 HostEventLoggerWin(base::WeakPtr<HostStatusMonitor> monitor, | 31 HostEventLoggerWin(base::WeakPtr<HostStatusMonitor> monitor, |
32 const std::string& application_name); | 32 const std::string& application_name); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 150 } |
151 | 151 |
152 // static | 152 // static |
153 std::unique_ptr<HostEventLogger> HostEventLogger::Create( | 153 std::unique_ptr<HostEventLogger> HostEventLogger::Create( |
154 base::WeakPtr<HostStatusMonitor> monitor, | 154 base::WeakPtr<HostStatusMonitor> monitor, |
155 const std::string& application_name) { | 155 const std::string& application_name) { |
156 return base::WrapUnique(new HostEventLoggerWin(monitor, application_name)); | 156 return base::WrapUnique(new HostEventLoggerWin(monitor, application_name)); |
157 } | 157 } |
158 | 158 |
159 } // namespace remoting | 159 } // namespace remoting |
OLD | NEW |