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/api/management/management_api.h" | 5 #include "chrome/browser/extensions/api/management/management_api.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/extensions/extension_system.h" | 25 #include "chrome/browser/extensions/extension_system.h" |
26 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 26 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/browser/ui/extensions/application_launch.h" | 28 #include "chrome/browser/ui/extensions/application_launch.h" |
29 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 29 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
30 #include "chrome/common/chrome_utility_messages.h" | 30 #include "chrome/common/chrome_utility_messages.h" |
31 #include "chrome/common/extensions/api/management.h" | 31 #include "chrome/common/extensions/api/management.h" |
32 #include "chrome/common/extensions/extension_icon_set.h" | 32 #include "chrome/common/extensions/extension_icon_set.h" |
33 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 33 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
34 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 34 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
35 #include "chrome/common/extensions/manifest_handlers/offline_enabled_info.h" | |
36 #include "chrome/common/extensions/manifest_url_handler.h" | 35 #include "chrome/common/extensions/manifest_url_handler.h" |
37 #include "content/public/browser/notification_details.h" | 36 #include "content/public/browser/notification_details.h" |
38 #include "content/public/browser/notification_source.h" | 37 #include "content/public/browser/notification_source.h" |
39 #include "content/public/browser/utility_process_host.h" | 38 #include "content/public/browser/utility_process_host.h" |
40 #include "content/public/browser/utility_process_host_client.h" | 39 #include "content/public/browser/utility_process_host_client.h" |
41 #include "extensions/browser/event_router.h" | 40 #include "extensions/browser/event_router.h" |
42 #include "extensions/browser/management_policy.h" | 41 #include "extensions/browser/management_policy.h" |
43 #include "extensions/common/constants.h" | 42 #include "extensions/common/constants.h" |
44 #include "extensions/common/error_utils.h" | 43 #include "extensions/common/error_utils.h" |
45 #include "extensions/common/extension.h" | 44 #include "extensions/common/extension.h" |
| 45 #include "extensions/common/manifest_handlers/offline_enabled_info.h" |
46 #include "extensions/common/permissions/permission_set.h" | 46 #include "extensions/common/permissions/permission_set.h" |
47 #include "extensions/common/permissions/permissions_data.h" | 47 #include "extensions/common/permissions/permissions_data.h" |
48 #include "extensions/common/url_pattern.h" | 48 #include "extensions/common/url_pattern.h" |
49 | 49 |
50 #if !defined(OS_ANDROID) | 50 #if !defined(OS_ANDROID) |
51 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" | 51 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" |
52 #endif | 52 #endif |
53 | 53 |
54 using base::IntToString; | 54 using base::IntToString; |
55 using content::BrowserThread; | 55 using content::BrowserThread; |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 ProfileKeyedAPIFactory<ManagementAPI>* ManagementAPI::GetFactoryInstance() { | 723 ProfileKeyedAPIFactory<ManagementAPI>* ManagementAPI::GetFactoryInstance() { |
724 return &g_factory.Get(); | 724 return &g_factory.Get(); |
725 } | 725 } |
726 | 726 |
727 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { | 727 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { |
728 management_event_router_.reset(new ManagementEventRouter(profile_)); | 728 management_event_router_.reset(new ManagementEventRouter(profile_)); |
729 ExtensionSystem::Get(profile_)->event_router()->UnregisterObserver(this); | 729 ExtensionSystem::Get(profile_)->event_router()->UnregisterObserver(this); |
730 } | 730 } |
731 | 731 |
732 } // namespace extensions | 732 } // namespace extensions |
OLD | NEW |