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

Side by Side Diff: chrome/browser/policy/user_policy_cache.h

Issue 7941008: Cosmetic cleanups in chrome/browser/policy/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload was broken? Created 9 years, 3 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) 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
20 class CachedCloudPolicyResponse; 21 class CachedCloudPolicyResponse;
21 // <Old-style policy support> (see comment below) 22 // <Old-style policy support> (see comment below)
22 class GenericValue; 23 class GenericValue;
23 // </Old-style policy support> 24 // </Old-style policy support>
25
24 } // namespace enterprise_management 26 } // namespace enterprise_management
25 27
26 namespace policy { 28 namespace policy {
27 29
30 namespace em = enterprise_management;
31
32 class PolicyMap;
33
28 // CloudPolicyCacheBase implementation that persists policy information 34 // CloudPolicyCacheBase implementation that persists policy information
29 // into the file specified by the c'tor parameter |backing_file_path|. 35 // into the file specified by the c'tor parameter |backing_file_path|.
30 class UserPolicyCache : public CloudPolicyCacheBase, 36 class UserPolicyCache : public CloudPolicyCacheBase,
31 public UserPolicyDiskCache::Delegate { 37 public UserPolicyDiskCache::Delegate {
32 public: 38 public:
33 explicit UserPolicyCache(const FilePath& backing_file_path); 39 explicit UserPolicyCache(const FilePath& backing_file_path);
34 virtual ~UserPolicyCache(); 40 virtual ~UserPolicyCache();
35 41
36 // CloudPolicyCacheBase implementation: 42 // CloudPolicyCacheBase implementation:
37 virtual void Load() OVERRIDE; 43 virtual void Load() OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 79
74 // Used for constructing the weak ptr passed to |disk_cache_|. 80 // Used for constructing the weak ptr passed to |disk_cache_|.
75 base::WeakPtrFactory<UserPolicyDiskCache::Delegate> weak_ptr_factory_; 81 base::WeakPtrFactory<UserPolicyDiskCache::Delegate> weak_ptr_factory_;
76 82
77 DISALLOW_COPY_AND_ASSIGN(UserPolicyCache); 83 DISALLOW_COPY_AND_ASSIGN(UserPolicyCache);
78 }; 84 };
79 85
80 } // namespace policy 86 } // namespace policy
81 87
82 #endif // CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_ 88 #endif // CHROME_BROWSER_POLICY_USER_POLICY_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/url_blacklist_manager.cc ('k') | chrome/browser/policy/user_policy_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698