Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: remoting/host/policy_hack/policy_watcher_linux.cc

Issue 18052008: Use a direct include of time headers in ppapi/, printing/, remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Most of this code is copied from various classes in 5 // Most of this code is copied from various classes in
6 // src/chrome/browser/policy. In particular, look at 6 // src/chrome/browser/policy. In particular, look at
7 // 7 //
8 // file_based_policy_loader.{h,cc} 8 // file_based_policy_loader.{h,cc}
9 // config_dir_policy_provider.{h,cc} 9 // config_dir_policy_provider.{h,cc}
10 // 10 //
11 // This is a reduction of the functionality in those classes. 11 // This is a reduction of the functionality in those classes.
12 12
13 #include <set> 13 #include <set>
14 14
15 #include "remoting/host/policy_hack/policy_watcher.h" 15 #include "remoting/host/policy_hack/policy_watcher.h"
16 16
17 #include "base/bind.h" 17 #include "base/bind.h"
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/file_util.h" 19 #include "base/file_util.h"
20 #include "base/files/file_enumerator.h" 20 #include "base/files/file_enumerator.h"
21 #include "base/files/file_path.h" 21 #include "base/files/file_path.h"
22 #include "base/files/file_path_watcher.h" 22 #include "base/files/file_path_watcher.h"
23 #include "base/json/json_file_value_serializer.h" 23 #include "base/json/json_file_value_serializer.h"
24 #include "base/memory/scoped_ptr.h" 24 #include "base/memory/scoped_ptr.h"
25 #include "base/memory/weak_ptr.h" 25 #include "base/memory/weak_ptr.h"
26 #include "base/single_thread_task_runner.h" 26 #include "base/single_thread_task_runner.h"
27 #include "base/synchronization/waitable_event.h" 27 #include "base/synchronization/waitable_event.h"
28 #include "base/time.h" 28 #include "base/time/time.h"
29 #include "base/values.h" 29 #include "base/values.h"
30 30
31 namespace remoting { 31 namespace remoting {
32 namespace policy_hack { 32 namespace policy_hack {
33 33
34 namespace { 34 namespace {
35 35
36 const base::FilePath::CharType kPolicyDir[] = 36 const base::FilePath::CharType kPolicyDir[] =
37 // Always read the Chrome policies (even on Chromium) so that policy 37 // Always read the Chrome policies (even on Chromium) so that policy
38 // enforcement can't be bypassed by running Chromium. 38 // enforcement can't be bypassed by running Chromium.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 }; 245 };
246 246
247 PolicyWatcher* PolicyWatcher::Create( 247 PolicyWatcher* PolicyWatcher::Create(
248 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { 248 scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
249 base::FilePath policy_dir(kPolicyDir); 249 base::FilePath policy_dir(kPolicyDir);
250 return new PolicyWatcherLinux(task_runner, policy_dir); 250 return new PolicyWatcherLinux(task_runner, policy_dir);
251 } 251 }
252 252
253 } // namespace policy_hack 253 } // namespace policy_hack
254 } // namespace remoting 254 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/policy_hack/policy_watcher.cc ('k') | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698