OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h" | 5 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h" |
6 | 6 |
7 #include "ash/screensaver/screensaver_view.h" | 7 #include "ash/screensaver/screensaver_view.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | 12 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
13 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 13 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
14 #include "chrome/browser/chromeos/login/user_manager.h" | 14 #include "chrome/browser/chromeos/login/user_manager.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" | 16 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" |
17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/extensions/extension_file_util.h" | 19 #include "chrome/common/extensions/extension_file_util.h" |
20 #include "chromeos/dbus/dbus_thread_manager.h" | 20 #include "chromeos/dbus/dbus_thread_manager.h" |
21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
23 | 23 |
| 24 using extensions::Extension; |
| 25 |
24 namespace chromeos { | 26 namespace chromeos { |
25 | 27 |
26 typedef base::Callback<void( | 28 typedef base::Callback<void( |
27 scoped_refptr<Extension>, | 29 scoped_refptr<Extension>, |
28 Profile*, | 30 Profile*, |
29 const FilePath&)> UnpackCallback; | 31 const FilePath&)> UnpackCallback; |
30 | 32 |
31 class ScreensaverUnpackerClient : public SandboxedExtensionUnpackerClient { | 33 class ScreensaverUnpackerClient : public SandboxedExtensionUnpackerClient { |
32 public: | 34 public: |
33 explicit ScreensaverUnpackerClient(const UnpackCallback& unpacker_callback) | 35 explicit ScreensaverUnpackerClient(const UnpackCallback& unpacker_callback) |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 230 |
229 g_kiosk_mode_screensaver = new KioskModeScreensaver(); | 231 g_kiosk_mode_screensaver = new KioskModeScreensaver(); |
230 } | 232 } |
231 | 233 |
232 void ShutdownKioskModeScreensaver() { | 234 void ShutdownKioskModeScreensaver() { |
233 delete g_kiosk_mode_screensaver; | 235 delete g_kiosk_mode_screensaver; |
234 g_kiosk_mode_screensaver = NULL; | 236 g_kiosk_mode_screensaver = NULL; |
235 } | 237 } |
236 | 238 |
237 } // namespace chromeos | 239 } // namespace chromeos |
OLD | NEW |