Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_LOADER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_LOADER_H_ | |
| 7 | |
| 8 #include "base/memory/weak_ptr.h" | |
| 9 #include "base/values.h" | |
| 10 #include "chrome/browser/extensions/external_loader.h" | |
| 11 | |
| 12 namespace chromeos { | |
| 13 | |
| 14 // A custom extensions::ExternalLoader that is created by KioskAppManager and | |
| 15 // used for install kiosk app extensions. | |
| 16 class KioskAppExternalLoader | |
| 17 : public extensions::ExternalLoader, | |
| 18 public base::SupportsWeakPtr<KioskAppExternalLoader> { | |
| 19 public: | |
| 20 KioskAppExternalLoader(); | |
| 21 | |
| 22 // Sets current kiosk app extensions to be loaded. | |
| 23 void SetCurrentAppExtensions(scoped_ptr<base::DictionaryValue> prefs); | |
|
xiyuan
2014/07/08 21:50:59
nit: #include "base/memory/scoped_ptr.h"
jennyz
2014/07/12 00:03:20
Done.
| |
| 24 | |
| 25 // extensions::ExternalLoader overrides: | |
| 26 virtual void StartLoading() OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 virtual ~KioskAppExternalLoader(); | |
| 30 | |
| 31 base::DictionaryValue kiosk_apps_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(KioskAppExternalLoader); | |
| 34 }; | |
| 35 | |
| 36 } // namespace chromeos | |
| 37 | |
| 38 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_LOADER_H_ | |
| OLD | NEW |