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

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

Issue 10854213: Added UserCloudPolicyManager::ShutdownAndRemovePolicy() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 #ifndef CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_
6 #define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_ 6 #define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 chromeos::SessionManagerClient* session_manager_client, 40 chromeos::SessionManagerClient* session_manager_client,
41 const FilePath& legacy_token_cache_file, 41 const FilePath& legacy_token_cache_file,
42 const FilePath& legacy_policy_cache_file); 42 const FilePath& legacy_policy_cache_file);
43 virtual ~UserCloudPolicyStoreChromeOS(); 43 virtual ~UserCloudPolicyStoreChromeOS();
44 44
45 // CloudPolicyStore: 45 // CloudPolicyStore:
46 virtual void Store( 46 virtual void Store(
47 const enterprise_management::PolicyFetchResponse& policy) OVERRIDE; 47 const enterprise_management::PolicyFetchResponse& policy) OVERRIDE;
48 virtual void Load() OVERRIDE; 48 virtual void Load() OVERRIDE;
49 49
50 protected:
51 virtual void RemoveStoredPolicy() OVERRIDE;
52
50 private: 53 private:
51 // Called back from SessionManagerClient for policy load operations. 54 // Called back from SessionManagerClient for policy load operations.
52 void OnPolicyRetrieved(const std::string& policy_blob); 55 void OnPolicyRetrieved(const std::string& policy_blob);
53 56
54 // Completion handler for policy validation on the Load() path. Installs the 57 // Completion handler for policy validation on the Load() path. Installs the
55 // policy and publishes it if validation succeeded. 58 // policy and publishes it if validation succeeded.
56 void OnRetrievedPolicyValidated(UserCloudPolicyValidator* validator); 59 void OnRetrievedPolicyValidated(UserCloudPolicyValidator* validator);
57 60
58 // Completion handler for policy validation on the Load() path. Starts a store 61 // Completion handler for policy validation on the Load() path. Starts a store
59 // operation if the validation succeeded. 62 // operation if the validation succeeded.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 FilePath legacy_cache_dir_; 98 FilePath legacy_cache_dir_;
96 scoped_ptr<LegacyPolicyCacheLoader> legacy_loader_; 99 scoped_ptr<LegacyPolicyCacheLoader> legacy_loader_;
97 bool legacy_caches_loaded_; 100 bool legacy_caches_loaded_;
98 101
99 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreChromeOS); 102 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreChromeOS);
100 }; 103 };
101 104
102 } // namespace policy 105 } // namespace policy
103 106
104 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_ 107 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/user_cloud_policy_store.cc ('k') | chrome/browser/policy/user_cloud_policy_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698