OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/extensions/extension_process_manager.h" | 5 #include "chrome/browser/extensions/extension_process_manager.h" |
6 | 6 |
7 #include "chrome/browser/browser.h" | |
8 #include "chrome/browser/browser_window.h" | 7 #include "chrome/browser/browser_window.h" |
9 #include "chrome/browser/browsing_instance.h" | 8 #include "chrome/browser/browsing_instance.h" |
10 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
11 #include "chrome/browser/extensions/extension_host_mac.h" | 10 #include "chrome/browser/extensions/extension_host_mac.h" |
12 #endif | 11 #endif |
13 #include "chrome/browser/extensions/extension_host.h" | 12 #include "chrome/browser/extensions/extension_host.h" |
14 #include "chrome/browser/extensions/extensions_service.h" | 13 #include "chrome/browser/extensions/extensions_service.h" |
15 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
16 #include "chrome/browser/renderer_host/site_instance.h" | 15 #include "chrome/browser/renderer_host/site_instance.h" |
17 #include "chrome/browser/renderer_host/render_view_host.h" | 16 #include "chrome/browser/renderer_host/render_view_host.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
| 18 #include "chrome/browser/ui/browser.h" |
19 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
20 #include "chrome/common/extensions/extension_action.h" | 20 #include "chrome/common/extensions/extension_action.h" |
21 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
22 #include "chrome/common/notification_type.h" | 22 #include "chrome/common/notification_type.h" |
23 #include "chrome/common/render_messages.h" | 23 #include "chrome/common/render_messages.h" |
24 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Incognito profiles use this process manager. It is mostly a shim that decides | 28 // Incognito profiles use this process manager. It is mostly a shim that decides |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 if (service && service->is_ready()) | 457 if (service && service->is_ready()) |
458 CreateBackgroundHosts(this, service->extensions()); | 458 CreateBackgroundHosts(this, service->extensions()); |
459 } | 459 } |
460 break; | 460 break; |
461 } | 461 } |
462 default: | 462 default: |
463 ExtensionProcessManager::Observe(type, source, details); | 463 ExtensionProcessManager::Observe(type, source, details); |
464 break; | 464 break; |
465 } | 465 } |
466 } | 466 } |
OLD | NEW |