| OLD | NEW |
| 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_EXTENSIONS_EXTENSION_MANAGEMENT_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 #include "content/common/notification_observer.h" | 10 #include "content/common/notification_observer.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 class ExtensionManagementEventRouter : public NotificationObserver { | 50 class ExtensionManagementEventRouter : public NotificationObserver { |
| 51 public: | 51 public: |
| 52 explicit ExtensionManagementEventRouter(Profile* profile); | 52 explicit ExtensionManagementEventRouter(Profile* profile); |
| 53 virtual ~ExtensionManagementEventRouter(); | 53 virtual ~ExtensionManagementEventRouter(); |
| 54 | 54 |
| 55 void Init(); | 55 void Init(); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // NotificationObserver implementation. | 58 // NotificationObserver implementation. |
| 59 virtual void Observe(NotificationType type, | 59 virtual void Observe(int type, |
| 60 const NotificationSource& source, | 60 const NotificationSource& source, |
| 61 const NotificationDetails& details); | 61 const NotificationDetails& details); |
| 62 | 62 |
| 63 NotificationRegistrar registrar_; | 63 NotificationRegistrar registrar_; |
| 64 | 64 |
| 65 Profile* profile_; | 65 Profile* profile_; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementEventRouter); | 67 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementEventRouter); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_H__ | 70 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_H__ |
| OLD | NEW |