OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_ |
6 #define CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_ | 6 #define CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/file_path.h" | |
12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/values.h" | |
14 #include "chrome/browser/policy/cloud_policy_cache_base.h" | 14 #include "chrome/browser/policy/cloud_policy_cache_base.h" |
15 #include "chrome/browser/policy/user_policy_disk_cache.h" | 15 #include "chrome/browser/policy/user_policy_disk_cache.h" |
16 | 16 |
17 namespace em = enterprise_management; | 17 class FilePath; |
18 | 18 |
19 namespace enterprise_management { | 19 namespace enterprise_management { |
20 class CachedCloudPolicyResponse; | 20 class CachedCloudPolicyResponse; |
pastarmovj
2011/09/20 13:14:08
Again one empty line between the namespace and its
Joao da Silva
2011/09/20 18:51:17
Done.
| |
21 // <Old-style policy support> (see comment below) | 21 // <Old-style policy support> (see comment below) |
22 class GenericValue; | 22 class GenericValue; |
23 // </Old-style policy support> | 23 // </Old-style policy support> |
24 } // namespace enterprise_management | 24 } // namespace enterprise_management |
25 | 25 |
26 namespace em = enterprise_management; | |
27 | |
26 namespace policy { | 28 namespace policy { |
27 | 29 |
30 class PolicyMap; | |
31 | |
28 // CloudPolicyCacheBase implementation that persists policy information | 32 // CloudPolicyCacheBase implementation that persists policy information |
29 // into the file specified by the c'tor parameter |backing_file_path|. | 33 // into the file specified by the c'tor parameter |backing_file_path|. |
30 class UserPolicyCache : public CloudPolicyCacheBase, | 34 class UserPolicyCache : public CloudPolicyCacheBase, |
31 public UserPolicyDiskCache::Delegate { | 35 public UserPolicyDiskCache::Delegate { |
32 public: | 36 public: |
33 explicit UserPolicyCache(const FilePath& backing_file_path); | 37 explicit UserPolicyCache(const FilePath& backing_file_path); |
34 virtual ~UserPolicyCache(); | 38 virtual ~UserPolicyCache(); |
35 | 39 |
36 // CloudPolicyCacheBase implementation: | 40 // CloudPolicyCacheBase implementation: |
37 virtual void Load() OVERRIDE; | 41 virtual void Load() OVERRIDE; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 | 77 |
74 // Used for constructing the weak ptr passed to |disk_cache_|. | 78 // Used for constructing the weak ptr passed to |disk_cache_|. |
75 base::WeakPtrFactory<UserPolicyDiskCache::Delegate> weak_ptr_factory_; | 79 base::WeakPtrFactory<UserPolicyDiskCache::Delegate> weak_ptr_factory_; |
76 | 80 |
77 DISALLOW_COPY_AND_ASSIGN(UserPolicyCache); | 81 DISALLOW_COPY_AND_ASSIGN(UserPolicyCache); |
78 }; | 82 }; |
79 | 83 |
80 } // namespace policy | 84 } // namespace policy |
81 | 85 |
82 #endif // CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_ | 86 #endif // CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_ |
OLD | NEW |