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/policy_hack/policy_watcher.h" | 5 #include "remoting/host/policy_hack/policy_watcher.h" |
6 | 6 |
7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
11 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 namespace policy_hack { | 18 namespace policy_hack { |
19 | 19 |
20 // The MacOS version does not watch files because it is accepted | 20 // The MacOS version does not watch files because it is accepted |
21 // practice on the Mac that the user must logout/login for policies to be | 21 // practice on the Mac that the user must logout/login for policies to be |
22 // applied. This will actually pick up policies every | 22 // applied. This will actually pick up policies every |
23 // |kFallbackReloadDelayMinutes| which is sufficient for right now. | 23 // |kFallbackReloadDelayMinutes| which is sufficient for right now. |
24 class PolicyWatcherMac : public PolicyWatcher { | 24 class PolicyWatcherMac : public PolicyWatcher { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 }; | 87 }; |
88 | 88 |
89 PolicyWatcher* PolicyWatcher::Create( | 89 PolicyWatcher* PolicyWatcher::Create( |
90 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { | 90 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { |
91 return new PolicyWatcherMac(task_runner); | 91 return new PolicyWatcherMac(task_runner); |
92 } | 92 } |
93 | 93 |
94 } // namespace policy_hack | 94 } // namespace policy_hack |
95 } // namespace remoting | 95 } // namespace remoting |
OLD | NEW |