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.
5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/extensions/external_loader.h"
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
> {
20 KioskAppExternalLoader();
22 // Sets current kiosk app extensions to be loaded.
23 void SetCurrentAppExtensions(scoped_ptr
<base::DictionaryValue
> prefs
);
25 // extensions::ExternalLoader overrides:
26 void StartLoading() override
;
29 ~KioskAppExternalLoader() override
;
31 DISALLOW_COPY_AND_ASSIGN(KioskAppExternalLoader
);
34 } // namespace chromeos
36 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_