| 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 #include "chrome/browser/extensions/extension_install_prompt.h" | 10 #include "chrome/browser/extensions/extension_install_prompt.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 std::string extension_id_; | 138 std::string extension_id_; |
| 139 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; | 139 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 class ExtensionManagementEventRouter : public content::NotificationObserver { | 142 class ExtensionManagementEventRouter : public content::NotificationObserver { |
| 143 public: | 143 public: |
| 144 explicit ExtensionManagementEventRouter(Profile* profile); | 144 explicit ExtensionManagementEventRouter(Profile* profile); |
| 145 virtual ~ExtensionManagementEventRouter(); | 145 virtual ~ExtensionManagementEventRouter(); |
| 146 | 146 |
| 147 void Init(); | |
| 148 | |
| 149 private: | 147 private: |
| 150 // content::NotificationObserver implementation. | 148 // content::NotificationObserver implementation. |
| 151 virtual void Observe(int type, | 149 virtual void Observe(int type, |
| 152 const content::NotificationSource& source, | 150 const content::NotificationSource& source, |
| 153 const content::NotificationDetails& details) OVERRIDE; | 151 const content::NotificationDetails& details) OVERRIDE; |
| 154 | 152 |
| 155 content::NotificationRegistrar registrar_; | 153 content::NotificationRegistrar registrar_; |
| 156 | 154 |
| 157 Profile* profile_; | 155 Profile* profile_; |
| 158 | 156 |
| 159 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementEventRouter); | 157 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementEventRouter); |
| 160 }; | 158 }; |
| 161 | 159 |
| 162 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ | 160 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ |
| OLD | NEW |