Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_
6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chromeos/dbus/power_manager_client.h" 12 #include "chromeos/dbus/power_manager_client.h"
13 #include "content/public/browser/notification_observer.h" 13 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 14 #include "content/public/browser/notification_registrar.h"
15 15
16 class Profile;
17
18 namespace extensions {
16 class Extension; 19 class Extension;
17 class Profile; 20 }
18 21
19 namespace chromeos { 22 namespace chromeos {
20 23
21 class KioskModeScreensaver : public PowerManagerClient::Observer, 24 class KioskModeScreensaver : public PowerManagerClient::Observer,
22 public content::NotificationObserver { 25 public content::NotificationObserver {
23 public: 26 public:
24 KioskModeScreensaver(); 27 KioskModeScreensaver();
25 virtual ~KioskModeScreensaver(); 28 virtual ~KioskModeScreensaver();
26 29
27 // NotificationObserver overrides: 30 // NotificationObserver overrides:
(...skipping 10 matching lines...) Expand all
38 // Initialization functions, in order 41 // Initialization functions, in order
39 // Get the screensaver path once KioskModeHelper is initialized. 42 // Get the screensaver path once KioskModeHelper is initialized.
40 void GetScreensaverCrxPath(); 43 void GetScreensaverCrxPath();
41 44
42 // Callback to receive the path to the screensaver extension's crx and call 45 // Callback to receive the path to the screensaver extension's crx and call
43 // the unpacker to unpack and load the crx. 46 // the unpacker to unpack and load the crx.
44 void ScreensaverPathCallback(const FilePath& screensaver_crx); 47 void ScreensaverPathCallback(const FilePath& screensaver_crx);
45 48
46 // Called back on the UI thread to Setup the screensaver with the now unpacked 49 // Called back on the UI thread to Setup the screensaver with the now unpacked
47 // and loaded extension. 50 // and loaded extension.
48 void SetupScreensaver(scoped_refptr<Extension> extension, 51 void SetupScreensaver(scoped_refptr<extensions::Extension> extension,
49 Profile* default_profile, 52 Profile* default_profile,
50 const FilePath& extension_base_path); 53 const FilePath& extension_base_path);
51 54
52 content::NotificationRegistrar registrar_; 55 content::NotificationRegistrar registrar_;
53 base::WeakPtrFactory<KioskModeScreensaver> weak_ptr_factory_; 56 base::WeakPtrFactory<KioskModeScreensaver> weak_ptr_factory_;
54 57
55 FilePath extension_base_path_; 58 FilePath extension_base_path_;
56 59
57 DISALLOW_COPY_AND_ASSIGN(KioskModeScreensaver); 60 DISALLOW_COPY_AND_ASSIGN(KioskModeScreensaver);
58 }; 61 };
59 62
60 void InitializeKioskModeScreensaver(); 63 void InitializeKioskModeScreensaver();
61 void ShutdownKioskModeScreensaver(); 64 void ShutdownKioskModeScreensaver();
62 65
63 } // namespace chromeos 66 } // namespace chromeos
64 67
65 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager_util.cc ('k') | chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698