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 #include "chrome/browser/extensions/extension_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/extensions/api/font_settings/font_settings_api.h" | 37 #include "chrome/browser/extensions/api/font_settings/font_settings_api.h" |
38 #include "chrome/browser/extensions/api/managed_mode/managed_mode_api.h" | 38 #include "chrome/browser/extensions/api/managed_mode/managed_mode_api.h" |
39 #include "chrome/browser/extensions/api/management/management_api.h" | 39 #include "chrome/browser/extensions/api/management/management_api.h" |
40 #include "chrome/browser/extensions/api/media_galleries_private/media_galleries_
private_event_router.h" | 40 #include "chrome/browser/extensions/api/media_galleries_private/media_galleries_
private_event_router.h" |
41 #include "chrome/browser/extensions/api/preference/preference_api.h" | 41 #include "chrome/browser/extensions/api/preference/preference_api.h" |
42 #include "chrome/browser/extensions/api/processes/processes_api.h" | 42 #include "chrome/browser/extensions/api/processes/processes_api.h" |
43 #include "chrome/browser/extensions/api/push_messaging/push_messaging_api.h" | 43 #include "chrome/browser/extensions/api/push_messaging/push_messaging_api.h" |
44 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" | 44 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" |
45 #include "chrome/browser/extensions/app_notification_manager.h" | 45 #include "chrome/browser/extensions/app_notification_manager.h" |
46 #include "chrome/browser/extensions/app_sync_data.h" | 46 #include "chrome/browser/extensions/app_sync_data.h" |
| 47 #include "chrome/browser/extensions/bluetooth_event_router.h" |
47 #include "chrome/browser/extensions/browser_event_router.h" | 48 #include "chrome/browser/extensions/browser_event_router.h" |
48 #include "chrome/browser/extensions/component_loader.h" | 49 #include "chrome/browser/extensions/component_loader.h" |
49 #include "chrome/browser/extensions/crx_installer.h" | 50 #include "chrome/browser/extensions/crx_installer.h" |
50 #include "chrome/browser/extensions/data_deleter.h" | 51 #include "chrome/browser/extensions/data_deleter.h" |
51 #include "chrome/browser/extensions/default_apps_trial.h" | 52 #include "chrome/browser/extensions/default_apps_trial.h" |
52 #include "chrome/browser/extensions/extension_disabled_ui.h" | 53 #include "chrome/browser/extensions/extension_disabled_ui.h" |
53 #include "chrome/browser/extensions/extension_error_reporter.h" | 54 #include "chrome/browser/extensions/extension_error_reporter.h" |
54 #include "chrome/browser/extensions/extension_error_ui.h" | 55 #include "chrome/browser/extensions/extension_error_ui.h" |
55 #include "chrome/browser/extensions/extension_host.h" | 56 #include "chrome/browser/extensions/extension_host.h" |
56 #include "chrome/browser/extensions/extension_install_ui.h" | 57 #include "chrome/browser/extensions/extension_install_ui.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 #include "content/public/common/pepper_plugin_info.h" | 112 #include "content/public/common/pepper_plugin_info.h" |
112 #include "googleurl/src/gurl.h" | 113 #include "googleurl/src/gurl.h" |
113 #include "grit/generated_resources.h" | 114 #include "grit/generated_resources.h" |
114 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 115 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
115 #include "sync/api/sync_change.h" | 116 #include "sync/api/sync_change.h" |
116 #include "sync/api/sync_error_factory.h" | 117 #include "sync/api/sync_error_factory.h" |
117 #include "webkit/database/database_tracker.h" | 118 #include "webkit/database/database_tracker.h" |
118 #include "webkit/database/database_util.h" | 119 #include "webkit/database/database_util.h" |
119 #if defined(OS_CHROMEOS) | 120 #if defined(OS_CHROMEOS) |
120 #include "chrome/browser/chromeos/cros/cros_library.h" | 121 #include "chrome/browser/chromeos/cros/cros_library.h" |
121 #include "chrome/browser/chromeos/extensions/bluetooth_event_router.h" | |
122 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" | 122 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" |
123 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" | 123 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" |
124 #include "chrome/browser/chromeos/extensions/media_player_event_router.h" | 124 #include "chrome/browser/chromeos/extensions/media_player_event_router.h" |
125 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 125 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
126 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" | 126 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" |
127 #include "content/public/browser/storage_partition.h" | 127 #include "content/public/browser/storage_partition.h" |
128 #include "webkit/fileapi/file_system_context.h" | 128 #include "webkit/fileapi/file_system_context.h" |
129 #include "webkit/fileapi/file_system_mount_point_provider.h" | 129 #include "webkit/fileapi/file_system_mount_point_provider.h" |
130 #endif | 130 #endif |
131 | 131 |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 new extensions::FontSettingsEventRouter(profile_)); | 510 new extensions::FontSettingsEventRouter(profile_)); |
511 font_settings_event_router_->Init(); | 511 font_settings_event_router_->Init(); |
512 managed_mode_event_router_.reset( | 512 managed_mode_event_router_.reset( |
513 new extensions::ExtensionManagedModeEventRouter(profile_)); | 513 new extensions::ExtensionManagedModeEventRouter(profile_)); |
514 managed_mode_event_router_->Init(); | 514 managed_mode_event_router_->Init(); |
515 push_messaging_event_router_.reset( | 515 push_messaging_event_router_.reset( |
516 new extensions::PushMessagingEventRouter(profile_)); | 516 new extensions::PushMessagingEventRouter(profile_)); |
517 push_messaging_event_router_->Init(); | 517 push_messaging_event_router_->Init(); |
518 media_galleries_private_event_router_.reset( | 518 media_galleries_private_event_router_.reset( |
519 new extensions::MediaGalleriesPrivateEventRouter(profile_)); | 519 new extensions::MediaGalleriesPrivateEventRouter(profile_)); |
| 520 bluetooth_event_router_.reset( |
| 521 new extensions::ExtensionBluetoothEventRouter(profile_)); |
520 | 522 |
521 #if defined(OS_CHROMEOS) | 523 #if defined(OS_CHROMEOS) |
522 FileBrowserEventRouterFactory::GetForProfile( | 524 FileBrowserEventRouterFactory::GetForProfile( |
523 profile_)->ObserveFileSystemEvents(); | 525 profile_)->ObserveFileSystemEvents(); |
524 | 526 |
525 bluetooth_event_router_.reset( | |
526 new chromeos::ExtensionBluetoothEventRouter(profile_)); | |
527 | |
528 input_method_event_router_.reset( | 527 input_method_event_router_.reset( |
529 new chromeos::ExtensionInputMethodEventRouter); | 528 new chromeos::ExtensionInputMethodEventRouter); |
530 | 529 |
531 ExtensionMediaPlayerEventRouter::GetInstance()->Init(profile_); | 530 ExtensionMediaPlayerEventRouter::GetInstance()->Init(profile_); |
532 extensions::InputImeEventRouter::GetInstance()->Init(); | 531 extensions::InputImeEventRouter::GetInstance()->Init(); |
533 #endif // defined(OS_CHROMEOS) | 532 #endif // defined(OS_CHROMEOS) |
534 #endif // defined(ENABLE_EXTENSIONS) | 533 #endif // defined(ENABLE_EXTENSIONS) |
535 event_routers_initialized_ = true; | 534 event_routers_initialized_ = true; |
536 } | 535 } |
537 | 536 |
(...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2744 // enabling them. | 2743 // enabling them. |
2745 if (Extension::IsExternalLocation(extension->location()) && | 2744 if (Extension::IsExternalLocation(extension->location()) && |
2746 !extension_prefs_->IsExternalExtensionAcknowledged(extension->id())) { | 2745 !extension_prefs_->IsExternalExtensionAcknowledged(extension->id())) { |
2747 return false; | 2746 return false; |
2748 } | 2747 } |
2749 } | 2748 } |
2750 #endif | 2749 #endif |
2751 | 2750 |
2752 return true; | 2751 return true; |
2753 } | 2752 } |
OLD | NEW |