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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_policy_service.h

Issue 756133002: Purge cache when the server removes the policy for an extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win build Created 6 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_local_account_policy_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // CloudPolicyStore::Observer: 106 // CloudPolicyStore::Observer:
107 virtual void OnStoreLoaded(CloudPolicyStore* store) override; 107 virtual void OnStoreLoaded(CloudPolicyStore* store) override;
108 virtual void OnStoreError(CloudPolicyStore* store) override; 108 virtual void OnStoreError(CloudPolicyStore* store) override;
109 109
110 // ComponentCloudPolicyService::Delegate: 110 // ComponentCloudPolicyService::Delegate:
111 virtual void OnComponentCloudPolicyUpdated() override; 111 virtual void OnComponentCloudPolicyUpdated() override;
112 112
113 private: 113 private:
114 void CreateComponentCloudPolicyService( 114 void CreateComponentCloudPolicyService(
115 const scoped_refptr<net::URLRequestContextGetter>& request_context); 115 const scoped_refptr<net::URLRequestContextGetter>& request_context,
116 CloudPolicyClient* client);
116 117
117 const std::string account_id_; 118 const std::string account_id_;
118 const std::string user_id_; 119 const std::string user_id_;
119 const base::FilePath component_policy_cache_path_; 120 const base::FilePath component_policy_cache_path_;
120 SchemaRegistry schema_registry_; 121 SchemaRegistry schema_registry_;
121 const scoped_ptr<DeviceLocalAccountPolicyStore> store_; 122 const scoped_ptr<DeviceLocalAccountPolicyStore> store_;
122 DeviceLocalAccountExtensionTracker extension_tracker_; 123 DeviceLocalAccountExtensionTracker extension_tracker_;
123 scoped_refptr<DeviceLocalAccountExternalDataManager> external_data_manager_; 124 scoped_refptr<DeviceLocalAccountExternalDataManager> external_data_manager_;
124 scoped_refptr<chromeos::DeviceLocalAccountExternalPolicyLoader> 125 scoped_refptr<chromeos::DeviceLocalAccountExternalPolicyLoader>
125 extension_loader_; 126 extension_loader_;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 base::FilePath component_policy_cache_root_; 266 base::FilePath component_policy_cache_root_;
266 267
267 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_; 268 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_;
268 269
269 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService); 270 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService);
270 }; 271 };
271 272
272 } // namespace policy 273 } // namespace policy
273 274
274 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ 275 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_local_account_policy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698