| 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_UI_WEBUI_OPTIONS_EXTENSION_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_EXTENSION_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "chrome/browser/extensions/extension_install_ui.h" | 13 #include "chrome/browser/extensions/extension_install_ui.h" |
| 14 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 14 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
| 15 #include "chrome/browser/extensions/extension_warning_set.h" | 15 #include "chrome/browser/extensions/extension_warning_set.h" |
| 16 #include "chrome/browser/ui/shell_dialogs.h" | 16 #include "chrome/browser/ui/shell_dialogs.h" |
| 17 #include "chrome/browser/ui/webui/options/options_ui.h" | 17 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 18 #include "chrome/browser/ui/webui/chrome_web_ui.h" | 18 #include "chrome/browser/ui/webui/chrome_web_ui.h" |
| 19 #include "chrome/common/extensions/extension_resource.h" | 19 #include "chrome/common/extensions/extension_resource.h" |
| 20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 23 | 23 |
| 24 class Extension; | 24 class Extension; |
| 25 class ExtensionService; | 25 class ExtensionService; |
| 26 class FilePath; | 26 class FilePath; |
| 27 class PrefService; | 27 class PrefService; |
| 28 class RenderProcessHost; | |
| 29 class UserScript; | 28 class UserScript; |
| 30 | 29 |
| 31 namespace base { | 30 namespace base { |
| 32 class DictionaryValue; | 31 class DictionaryValue; |
| 33 class ListValue; | 32 class ListValue; |
| 34 } | 33 } |
| 35 | 34 |
| 36 // Information about a page running in an extension, for example a popup bubble, | 35 // Information about a page running in an extension, for example a popup bubble, |
| 37 // a background page, or a tab contents. | 36 // a background page, or a tab contents. |
| 38 struct ExtensionPage { | 37 struct ExtensionPage { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // We want to register for notifications only after we've responded at least | 191 // We want to register for notifications only after we've responded at least |
| 193 // once to the page, otherwise we'd be calling javacsript functions on objects | 192 // once to the page, otherwise we'd be calling javacsript functions on objects |
| 194 // that don't exist yet when notifications come in. This variable makes sure | 193 // that don't exist yet when notifications come in. This variable makes sure |
| 195 // we do so only once. | 194 // we do so only once. |
| 196 bool registered_for_notifications_; | 195 bool registered_for_notifications_; |
| 197 | 196 |
| 198 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 197 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
| 199 }; | 198 }; |
| 200 | 199 |
| 201 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_EXTENSION_SETTINGS_HANDLER_H_ | 200 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| OLD | NEW |