| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/extensions/external_loader.h" | 10 #include "chrome/browser/extensions/external_loader.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 // A custom extensions::ExternalLoader that is created by KioskAppManager and | 14 // A custom extensions::ExternalLoader that is created by KioskAppManager and |
| 15 // used for install kiosk app extensions. | 15 // used for install kiosk app extensions. |
| 16 class KioskAppExternalLoader | 16 class KioskAppExternalLoader |
| 17 : public extensions::ExternalLoader, | 17 : public extensions::ExternalLoader, |
| 18 public base::SupportsWeakPtr<KioskAppExternalLoader> { | 18 public base::SupportsWeakPtr<KioskAppExternalLoader> { |
| 19 public: | 19 public: |
| 20 KioskAppExternalLoader(); | 20 KioskAppExternalLoader(); |
| 21 | 21 |
| 22 // Sets current kiosk app extensions to be loaded. | 22 // Sets current kiosk app extensions to be loaded. |
| 23 void SetCurrentAppExtensions(scoped_ptr<base::DictionaryValue> prefs); | 23 void SetCurrentAppExtensions(std::unique_ptr<base::DictionaryValue> prefs); |
| 24 | 24 |
| 25 // extensions::ExternalLoader overrides: | 25 // extensions::ExternalLoader overrides: |
| 26 void StartLoading() override; | 26 void StartLoading() override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 ~KioskAppExternalLoader() override; | 29 ~KioskAppExternalLoader() override; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(KioskAppExternalLoader); | 31 DISALLOW_COPY_AND_ASSIGN(KioskAppExternalLoader); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace chromeos | 34 } // namespace chromeos |
| 35 | 35 |
| 36 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_ | 36 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_ |
| OLD | NEW |