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_keybinding_registry.h" | 5 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/extensions/active_tab_permission_granter.h" | 9 #include "chrome/browser/extensions/active_tab_permission_granter.h" |
10 #include "chrome/browser/extensions/api/commands/command_service.h" | 10 #include "chrome/browser/extensions/api/commands/command_service.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_system.h" | 12 #include "chrome/browser/extensions/extension_system.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/extensions/extension_set.h" | |
15 #include "extensions/browser/event_router.h" | 14 #include "extensions/browser/event_router.h" |
| 15 #include "extensions/common/extension_set.h" |
16 #include "extensions/common/manifest_constants.h" | 16 #include "extensions/common/manifest_constants.h" |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 ExtensionKeybindingRegistry::ExtensionKeybindingRegistry( | 20 ExtensionKeybindingRegistry::ExtensionKeybindingRegistry( |
21 Profile* profile, ExtensionFilter extension_filter, Delegate* delegate) | 21 Profile* profile, ExtensionFilter extension_filter, Delegate* delegate) |
22 : profile_(profile), | 22 : profile_(profile), |
23 extension_filter_(extension_filter), | 23 extension_filter_(extension_filter), |
24 delegate_(delegate) { | 24 delegate_(delegate) { |
25 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, | 25 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return true; | 180 return true; |
181 case PLATFORM_APPS_ONLY: | 181 case PLATFORM_APPS_ONLY: |
182 return extension->is_platform_app(); | 182 return extension->is_platform_app(); |
183 default: | 183 default: |
184 NOTREACHED(); | 184 NOTREACHED(); |
185 } | 185 } |
186 return false; | 186 return false; |
187 } | 187 } |
188 | 188 |
189 } // namespace extensions | 189 } // namespace extensions |
OLD | NEW |