| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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_APP_UPDATE_INSTALL_GATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_INSTALL_GATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/extensions/install_gate.h" |
| 10 |
| 11 namespace extensions { |
| 12 class Extension; |
| 13 class ExtensionRegistry; |
| 14 } |
| 15 |
| 16 class Profile; |
| 17 |
| 18 namespace chromeos { |
| 19 |
| 20 class KioskAppUpdateInstallGate : public extensions::InstallGate { |
| 21 public: |
| 22 explicit KioskAppUpdateInstallGate(Profile* profile); |
| 23 ~KioskAppUpdateInstallGate() override; |
| 24 |
| 25 // InstallGate: |
| 26 Action ShouldDelay(const extensions::Extension* extension, |
| 27 bool install_immediately) override; |
| 28 |
| 29 private: |
| 30 Profile* const profile_; |
| 31 extensions::ExtensionRegistry* const registry_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(KioskAppUpdateInstallGate); |
| 34 }; |
| 35 |
| 36 } // namespace chromeos |
| 37 |
| 38 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_INSTALL_GATE_H_ |
| OLD | NEW |