OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_
LOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_
LOADER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_
LOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_
LOADER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void StartLoading() OVERRIDE; | 51 virtual void StartLoading() OVERRIDE; |
52 | 52 |
53 // policy::CloudPolicyStore::Observer: | 53 // policy::CloudPolicyStore::Observer: |
54 virtual void OnStoreLoaded(policy::CloudPolicyStore* store) OVERRIDE; | 54 virtual void OnStoreLoaded(policy::CloudPolicyStore* store) OVERRIDE; |
55 virtual void OnStoreError(policy::CloudPolicyStore* store) OVERRIDE; | 55 virtual void OnStoreError(policy::CloudPolicyStore* store) OVERRIDE; |
56 | 56 |
57 // ExternalCache::Delegate: | 57 // ExternalCache::Delegate: |
58 virtual void OnExtensionListsUpdated( | 58 virtual void OnExtensionListsUpdated( |
59 const base::DictionaryValue* prefs) OVERRIDE; | 59 const base::DictionaryValue* prefs) OVERRIDE; |
60 | 60 |
| 61 ExternalCache* GetExternalCacheForTesting(); |
| 62 |
61 private: | 63 private: |
62 // If the cache was started, it must be stopped before |this| is destroyed. | 64 // If the cache was started, it must be stopped before |this| is destroyed. |
63 virtual ~DeviceLocalAccountExternalPolicyLoader(); | 65 virtual ~DeviceLocalAccountExternalPolicyLoader(); |
64 | 66 |
65 // Pass the current list of force-installed extensions from the |store_| to | 67 // Pass the current list of force-installed extensions from the |store_| to |
66 // the |external_cache_|. | 68 // the |external_cache_|. |
67 void UpdateExtensionListFromStore(); | 69 void UpdateExtensionListFromStore(); |
68 | 70 |
69 policy::CloudPolicyStore* store_; | 71 policy::CloudPolicyStore* store_; |
70 const base::FilePath cache_dir_; | 72 const base::FilePath cache_dir_; |
71 scoped_ptr<ExternalCache> external_cache_; | 73 scoped_ptr<ExternalCache> external_cache_; |
72 | 74 |
73 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountExternalPolicyLoader); | 75 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountExternalPolicyLoader); |
74 }; | 76 }; |
75 | 77 |
76 } // namespace chromeos | 78 } // namespace chromeos |
77 | 79 |
78 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLI
CY_LOADER_H_ | 80 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLI
CY_LOADER_H_ |
OLD | NEW |