OLD | NEW |
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_APP_PACK_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_APP_PACK_UPDATER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_APP_PACK_UPDATER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_APP_PACK_UPDATER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void SetScreenSaverUpdateCallback(const ScreenSaverUpdateCallback& callback); | 58 void SetScreenSaverUpdateCallback(const ScreenSaverUpdateCallback& callback); |
59 | 59 |
60 // If a user of one of the AppPack's extensions detects that the extension | 60 // If a user of one of the AppPack's extensions detects that the extension |
61 // is damaged then this method can be used to remove it from the cache and | 61 // is damaged then this method can be used to remove it from the cache and |
62 // retry to download it after a restart. | 62 // retry to download it after a restart. |
63 void OnDamagedFileDetected(const base::FilePath& path); | 63 void OnDamagedFileDetected(const base::FilePath& path); |
64 | 64 |
65 private: | 65 private: |
66 // Implementation of ExternalCache::Delegate: | 66 // Implementation of ExternalCache::Delegate: |
67 virtual void OnExtensionListsUpdated( | 67 virtual void OnExtensionListsUpdated( |
68 const base::DictionaryValue* prefs) OVERRIDE; | 68 const base::DictionaryValue* prefs) override; |
69 | 69 |
70 // Called when the app pack device setting changes. | 70 // Called when the app pack device setting changes. |
71 void AppPackChanged(); | 71 void AppPackChanged(); |
72 | 72 |
73 // Loads the current policy and schedules a cache update. | 73 // Loads the current policy and schedules a cache update. |
74 void LoadPolicy(); | 74 void LoadPolicy(); |
75 | 75 |
76 // Notifies the |extension_loader_| that the cache has been updated, providing | 76 // Notifies the |extension_loader_| that the cache has been updated, providing |
77 // it with an updated list of app-pack extensions. | 77 // it with an updated list of app-pack extensions. |
78 void UpdateExtensionLoader(); | 78 void UpdateExtensionLoader(); |
(...skipping 26 matching lines...) Expand all Loading... |
105 app_pack_subscription_; | 105 app_pack_subscription_; |
106 | 106 |
107 base::WeakPtrFactory<AppPackUpdater> weak_ptr_factory_; | 107 base::WeakPtrFactory<AppPackUpdater> weak_ptr_factory_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(AppPackUpdater); | 109 DISALLOW_COPY_AND_ASSIGN(AppPackUpdater); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace policy | 112 } // namespace policy |
113 | 113 |
114 #endif // CHROME_BROWSER_CHROMEOS_POLICY_APP_PACK_UPDATER_H_ | 114 #endif // CHROME_BROWSER_CHROMEOS_POLICY_APP_PACK_UPDATER_H_ |
OLD | NEW |