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

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

Issue 14306004: Put Kiosk App parameters into device settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 7 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_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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // The AppPackUpdater manages a set of extensions that are configured via a 43 // The AppPackUpdater manages a set of extensions that are configured via a
44 // device policy to be locally cached and installed into the Demo user account 44 // device policy to be locally cached and installed into the Demo user account
45 // at login time. 45 // at login time.
46 class AppPackUpdater : public content::NotificationObserver, 46 class AppPackUpdater : public content::NotificationObserver,
47 public extensions::ExtensionDownloaderDelegate { 47 public extensions::ExtensionDownloaderDelegate {
48 public: 48 public:
49 // Callback to listen for updates to the screensaver extension's path. 49 // Callback to listen for updates to the screensaver extension's path.
50 typedef base::Callback<void(const base::FilePath&)> ScreenSaverUpdateCallback; 50 typedef base::Callback<void(const base::FilePath&)> ScreenSaverUpdateCallback;
51 51
52 // Keys for the entries in the AppPack dictionary policy.
53 static const char kExtensionId[];
54 static const char kUpdateUrl[];
55
56 // The |request_context| is used for the update checks. 52 // The |request_context| is used for the update checks.
57 AppPackUpdater(net::URLRequestContextGetter* request_context, 53 AppPackUpdater(net::URLRequestContextGetter* request_context,
58 EnterpriseInstallAttributes* install_attributes); 54 EnterpriseInstallAttributes* install_attributes);
59 virtual ~AppPackUpdater(); 55 virtual ~AppPackUpdater();
60 56
61 // Creates an extensions::ExternalLoader that will load the crx files 57 // Creates an extensions::ExternalLoader that will load the crx files
62 // downloaded by the AppPackUpdater. This can be called at most once, and the 58 // downloaded by the AppPackUpdater. This can be called at most once, and the
63 // caller owns the returned value. 59 // caller owns the returned value.
64 extensions::ExternalLoader* CreateExternalLoader(); 60 extensions::ExternalLoader* CreateExternalLoader();
65 61
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 215
220 // For checking the device mode. 216 // For checking the device mode.
221 EnterpriseInstallAttributes* install_attributes_; 217 EnterpriseInstallAttributes* install_attributes_;
222 218
223 DISALLOW_COPY_AND_ASSIGN(AppPackUpdater); 219 DISALLOW_COPY_AND_ASSIGN(AppPackUpdater);
224 }; 220 };
225 221
226 } // namespace policy 222 } // namespace policy
227 223
228 #endif // CHROME_BROWSER_CHROMEOS_POLICY_APP_PACK_UPDATER_H_ 224 #endif // CHROME_BROWSER_CHROMEOS_POLICY_APP_PACK_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.cc ('k') | chrome/browser/chromeos/policy/app_pack_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698