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 #include "chrome/browser/ui/webui/options/extension_settings_handler.h" | 5 #include "chrome/browser/ui/webui/options/extension_settings_handler.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/ui/webui/extension_icon_source.h" | 25 #include "chrome/browser/ui/webui/extension_icon_source.h" |
26 #include "chrome/common/extensions/extension.h" | 26 #include "chrome/common/extensions/extension.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
28 #include "chrome/common/url_constants.h" | 28 #include "chrome/common/url_constants.h" |
29 #include "chrome/common/chrome_view_types.h" | 29 #include "chrome/common/chrome_view_types.h" |
30 #include "content/browser/browsing_instance.h" | 30 #include "content/browser/browsing_instance.h" |
31 #include "content/browser/renderer_host/render_process_host.h" | 31 #include "content/browser/renderer_host/render_process_host.h" |
32 #include "content/browser/renderer_host/render_view_host.h" | 32 #include "content/browser/renderer_host/render_view_host.h" |
33 #include "content/browser/tab_contents/tab_contents.h" | 33 #include "content/browser/tab_contents/tab_contents.h" |
34 #include "content/browser/tab_contents/tab_contents_view.h" | 34 #include "content/browser/tab_contents/tab_contents_view.h" |
35 #include "content/common/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/browser/notification_types.h" | 36 #include "content/public/browser/notification_types.h" |
37 #include "grit/browser_resources.h" | 37 #include "grit/browser_resources.h" |
38 #include "grit/chromium_strings.h" | 38 #include "grit/chromium_strings.h" |
39 #include "grit/generated_resources.h" | 39 #include "grit/generated_resources.h" |
40 #include "grit/theme_resources.h" | 40 #include "grit/theme_resources.h" |
41 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
42 #include "ui/base/resource/resource_bundle.h" | 42 #include "ui/base/resource/resource_bundle.h" |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_PROCESS_CREATED, | 209 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_PROCESS_CREATED, |
210 content::Source<Profile>(profile)); | 210 content::Source<Profile>(profile)); |
211 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, | 211 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, |
212 content::Source<Profile>(profile)); | 212 content::Source<Profile>(profile)); |
213 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UPDATE_DISABLED, | 213 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UPDATE_DISABLED, |
214 content::Source<Profile>(profile)); | 214 content::Source<Profile>(profile)); |
215 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_WARNING_CHANGED, | 215 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_WARNING_CHANGED, |
216 content::Source<Profile>(profile)); | 216 content::Source<Profile>(profile)); |
217 registrar_.Add(this, | 217 registrar_.Add(this, |
218 content::NOTIFICATION_NAV_ENTRY_COMMITTED, | 218 content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
219 NotificationService::AllBrowserContextsAndSources()); | 219 content::NotificationService::AllBrowserContextsAndSources()); |
220 registrar_.Add(this, | 220 registrar_.Add(this, |
221 content::NOTIFICATION_RENDER_VIEW_HOST_CREATED, | 221 content::NOTIFICATION_RENDER_VIEW_HOST_CREATED, |
222 NotificationService::AllBrowserContextsAndSources()); | 222 content::NotificationService::AllBrowserContextsAndSources()); |
223 registrar_.Add(this, | 223 registrar_.Add(this, |
224 content::NOTIFICATION_RENDER_VIEW_HOST_DELETED, | 224 content::NOTIFICATION_RENDER_VIEW_HOST_DELETED, |
225 NotificationService::AllBrowserContextsAndSources()); | 225 content::NotificationService::AllBrowserContextsAndSources()); |
226 registrar_.Add(this, | 226 registrar_.Add(this, |
227 chrome::NOTIFICATION_BACKGROUND_CONTENTS_NAVIGATED, | 227 chrome::NOTIFICATION_BACKGROUND_CONTENTS_NAVIGATED, |
228 NotificationService::AllBrowserContextsAndSources()); | 228 content::NotificationService::AllBrowserContextsAndSources()); |
229 registrar_.Add(this, | 229 registrar_.Add(this, |
230 chrome::NOTIFICATION_BACKGROUND_CONTENTS_DELETED, | 230 chrome::NOTIFICATION_BACKGROUND_CONTENTS_DELETED, |
231 NotificationService::AllBrowserContextsAndSources()); | 231 content::NotificationService::AllBrowserContextsAndSources()); |
232 registrar_.Add( | 232 registrar_.Add( |
233 this, | 233 this, |
234 chrome::NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, | 234 chrome::NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, |
235 content::Source<ExtensionPrefs>(profile->GetExtensionService()-> | 235 content::Source<ExtensionPrefs>(profile->GetExtensionService()-> |
236 extension_prefs())); | 236 extension_prefs())); |
237 } | 237 } |
238 | 238 |
239 ExtensionUninstallDialog* | 239 ExtensionUninstallDialog* |
240 ExtensionSettingsHandler::GetExtensionUninstallDialog() { | 240 ExtensionSettingsHandler::GetExtensionUninstallDialog() { |
241 if (!extension_uninstall_dialog_.get()) { | 241 if (!extension_uninstall_dialog_.get()) { |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 continue; | 800 continue; |
801 } else if (!extension->web_extent().MatchesURL(url)) { | 801 } else if (!extension->web_extent().MatchesURL(url)) { |
802 continue; | 802 continue; |
803 } | 803 } |
804 | 804 |
805 result->push_back( | 805 result->push_back( |
806 ExtensionPage(url, process->id(), host->routing_id(), | 806 ExtensionPage(url, process->id(), host->routing_id(), |
807 process->browser_context()->IsOffTheRecord())); | 807 process->browser_context()->IsOffTheRecord())); |
808 } | 808 } |
809 } | 809 } |
OLD | NEW |