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/curtain_mode.h" | 5 #include "remoting/host/curtain_mode.h" |
6 | 6 |
7 #include <ApplicationServices/ApplicationServices.h> | 7 #include <ApplicationServices/ApplicationServices.h> |
8 #include <Carbon/Carbon.h> | 8 #include <Carbon/Carbon.h> |
9 #include <Security/Security.h> | 9 #include <Security/Security.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/mac/mac_util.h" | 15 #include "base/mac/mac_util.h" |
16 #include "base/mac/scoped_cftyperef.h" | 16 #include "base/mac/scoped_cftyperef.h" |
| 17 #include "base/macros.h" |
17 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
18 #include "remoting/host/client_session_control.h" | 19 #include "remoting/host/client_session_control.h" |
19 #include "remoting/protocol/errors.h" | 20 #include "remoting/protocol/errors.h" |
20 | 21 |
21 namespace remoting { | 22 namespace remoting { |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 const char* kCGSessionPath = | 26 const char* kCGSessionPath = |
26 "/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/" | 27 "/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // static | 262 // static |
262 scoped_ptr<CurtainMode> CurtainMode::Create( | 263 scoped_ptr<CurtainMode> CurtainMode::Create( |
263 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 264 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
264 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 265 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
265 base::WeakPtr<ClientSessionControl> client_session_control) { | 266 base::WeakPtr<ClientSessionControl> client_session_control) { |
266 return make_scoped_ptr(new CurtainModeMac( | 267 return make_scoped_ptr(new CurtainModeMac( |
267 caller_task_runner, ui_task_runner, client_session_control)); | 268 caller_task_runner, ui_task_runner, client_session_control)); |
268 } | 269 } |
269 | 270 |
270 } // namespace remoting | 271 } // namespace remoting |
OLD | NEW |