OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef EXTENSIONS_COMMON_EXTENSION_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_ |
6 #define EXTENSIONS_COMMON_EXTENSION_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
22 #include "base/threading/thread_checker.h" | 22 #include "base/threading/thread_checker.h" |
23 #include "extensions/common/extension_resource.h" | 23 #include "extensions/common/extension_resource.h" |
24 #include "extensions/common/install_warning.h" | 24 #include "extensions/common/install_warning.h" |
25 #include "extensions/common/manifest.h" | 25 #include "extensions/common/manifest.h" |
26 #include "extensions/common/url_pattern_set.h" | 26 #include "extensions/common/url_pattern_set.h" |
27 #include "ui/base/accelerators/accelerator.h" | 27 #include "ui/base/accelerators/accelerator.h" |
28 #include "ui/gfx/size.h" | 28 #include "ui/gfx/size.h" |
29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
30 | 30 |
| 31 #if !defined(ENABLE_EXTENSIONS) |
| 32 #error "Extensions must be enabled" |
| 33 #endif |
| 34 |
31 namespace base { | 35 namespace base { |
32 class DictionaryValue; | 36 class DictionaryValue; |
33 class Version; | 37 class Version; |
34 } | 38 } |
35 | 39 |
36 namespace extensions { | 40 namespace extensions { |
37 class PermissionSet; | 41 class PermissionSet; |
38 class PermissionsData; | 42 class PermissionsData; |
39 class PermissionsParser; | 43 class PermissionsParser; |
40 | 44 |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 568 |
565 UpdatedExtensionPermissionsInfo( | 569 UpdatedExtensionPermissionsInfo( |
566 const Extension* extension, | 570 const Extension* extension, |
567 const PermissionSet* permissions, | 571 const PermissionSet* permissions, |
568 Reason reason); | 572 Reason reason); |
569 }; | 573 }; |
570 | 574 |
571 } // namespace extensions | 575 } // namespace extensions |
572 | 576 |
573 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 577 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
OLD | NEW |