Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / chromeos / app_mode / kiosk_app_external_loader.h
blob2cc51921415cf3c1a5f70c877114674d38041eb5
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"
12 namespace chromeos {
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();
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;
28 private:
29 ~KioskAppExternalLoader() override;
31 DISALLOW_COPY_AND_ASSIGN(KioskAppExternalLoader);
34 } // namespace chromeos
36 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_