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/setup/daemon_controller.h" | 5 #include "remoting/host/setup/daemon_controller.h" |
6 | 6 |
7 #include <launch.h> | 7 #include <launch.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/mac/foundation_util.h" | 18 #include "base/mac/foundation_util.h" |
19 #include "base/mac/launchd.h" | 19 #include "base/mac/launchd.h" |
20 #include "base/mac/mac_logging.h" | 20 #include "base/mac/mac_logging.h" |
21 #include "base/mac/mac_util.h" | 21 #include "base/mac/mac_util.h" |
22 #include "base/mac/scoped_launch_data.h" | 22 #include "base/mac/scoped_launch_data.h" |
23 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
24 #include "base/time.h" | 24 #include "base/time/time.h" |
25 #include "base/values.h" | 25 #include "base/values.h" |
26 #include "remoting/host/constants_mac.h" | 26 #include "remoting/host/constants_mac.h" |
27 #include "remoting/host/json_host_config.h" | 27 #include "remoting/host/json_host_config.h" |
28 #include "remoting/host/usage_stats_consent.h" | 28 #include "remoting/host/usage_stats_consent.h" |
29 | 29 |
30 namespace remoting { | 30 namespace remoting { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 class DaemonControllerMac : public remoting::DaemonController { | 34 class DaemonControllerMac : public remoting::DaemonController { |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 } | 369 } |
370 } | 370 } |
371 | 371 |
372 } // namespace | 372 } // namespace |
373 | 373 |
374 scoped_ptr<DaemonController> remoting::DaemonController::Create() { | 374 scoped_ptr<DaemonController> remoting::DaemonController::Create() { |
375 return scoped_ptr<DaemonController>(new DaemonControllerMac()); | 375 return scoped_ptr<DaemonController>(new DaemonControllerMac()); |
376 } | 376 } |
377 | 377 |
378 } // namespace remoting | 378 } // namespace remoting |
OLD | NEW |