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

Side by Side Diff: chrome/browser/chromeos/enterprise_extension_observer.h

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ENTERPRISE_EXTENSION_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ENTERPRISE_EXTENSION_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_ENTERPRISE_EXTENSION_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ENTERPRISE_EXTENSION_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h"
9 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
10 #include "content/public/browser/notification_details.h" 11 #include "content/public/browser/notification_details.h"
11 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
13 #include "content/public/browser/notification_source.h" 14 #include "content/public/browser/notification_source.h"
14 #include "content/public/browser/notification_types.h" 15 #include "content/public/browser/notification_types.h"
15 16
16 class FilePath; 17 class FilePath;
17 class Profile; 18 class Profile;
18 19
19 namespace chromeos { 20 namespace chromeos {
20 21
21 // This observer listens for installed extensions and restarts the ChromeOS 22 // This observer listens for installed extensions and restarts the ChromeOS
22 // Enterprise daemon if an Enterprise Extension gets installed. 23 // Enterprise daemon if an Enterprise Extension gets installed.
23 class EnterpriseExtensionObserver 24 class EnterpriseExtensionObserver
24 : public content::NotificationObserver { 25 : public content::NotificationObserver {
25 public: 26 public:
26 explicit EnterpriseExtensionObserver(Profile* profile); 27 explicit EnterpriseExtensionObserver(Profile* profile);
27 virtual ~EnterpriseExtensionObserver() {} 28 virtual ~EnterpriseExtensionObserver() {}
28 29
29 virtual void Observe(int type, 30 virtual void Observe(int type,
30 const content::NotificationSource& source, 31 const content::NotificationSource& source,
31 const content::NotificationDetails& details); 32 const content::NotificationDetails& details) OVERRIDE;
32 33
33 private: 34 private:
34 static void CheckExtensionAndNotifyEntd(const FilePath& path); 35 static void CheckExtensionAndNotifyEntd(const FilePath& path);
35 static void NotifyEntd(); 36 static void NotifyEntd();
36 37
37 Profile* profile_; 38 Profile* profile_;
38 content::NotificationRegistrar registrar_; 39 content::NotificationRegistrar registrar_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(EnterpriseExtensionObserver); 41 DISALLOW_COPY_AND_ASSIGN(EnterpriseExtensionObserver);
41 }; 42 };
42 43
43 } // namespace chromeos 44 } // namespace chromeos
44 45
45 #endif // CHROME_BROWSER_CHROMEOS_ENTERPRISE_EXTENSION_OBSERVER_H_ 46 #endif // CHROME_BROWSER_CHROMEOS_ENTERPRISE_EXTENSION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698