| 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 static const char* kBookmarkPermission; | 99 static const char* kBookmarkPermission; |
| 100 static const char* kContextMenusPermission; | 100 static const char* kContextMenusPermission; |
| 101 static const char* kCookiePermission; | 101 static const char* kCookiePermission; |
| 102 static const char* kExperimentalPermission; | 102 static const char* kExperimentalPermission; |
| 103 static const char* kGeolocationPermission; | 103 static const char* kGeolocationPermission; |
| 104 static const char* kHistoryPermission; | 104 static const char* kHistoryPermission; |
| 105 static const char* kIdlePermission; | 105 static const char* kIdlePermission; |
| 106 static const char* kNotificationPermission; | 106 static const char* kNotificationPermission; |
| 107 static const char* kTabPermission; | 107 static const char* kTabPermission; |
| 108 static const char* kUnlimitedStoragePermission; | 108 static const char* kUnlimitedStoragePermission; |
| 109 static const char* kNativeClientPermission; |
| 109 | 110 |
| 110 static const char* kPermissionNames[]; | 111 static const char* kPermissionNames[]; |
| 111 static const size_t kNumPermissions; | 112 static const size_t kNumPermissions; |
| 112 | 113 |
| 113 // A "simple permission" is one that has a one-to-one mapping with a message | 114 // A "simple permission" is one that has a one-to-one mapping with a message |
| 114 // that is displayed in the install UI. This is in contrast to more complex | 115 // that is displayed in the install UI. This is in contrast to more complex |
| 115 // permissions like http access, where the exact message displayed depends on | 116 // permissions like http access, where the exact message displayed depends on |
| 116 // several factors. | 117 // several factors. |
| 117 typedef std::map<std::string, string16> SimplePermissions; | 118 typedef std::map<std::string, string16> SimplePermissions; |
| 118 static const SimplePermissions& GetSimplePermissions(); | 119 static const SimplePermissions& GetSimplePermissions(); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 scoped_ptr<DictionaryValue> extension_manifest; | 604 scoped_ptr<DictionaryValue> extension_manifest; |
| 604 std::string extension_id; | 605 std::string extension_id; |
| 605 FilePath extension_path; | 606 FilePath extension_path; |
| 606 Extension::Location extension_location; | 607 Extension::Location extension_location; |
| 607 | 608 |
| 608 private: | 609 private: |
| 609 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 610 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
| 610 }; | 611 }; |
| 611 | 612 |
| 612 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 613 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |