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 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 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 // Content-Security-Policies to mitigate cross-site scripting and other | 963 // Content-Security-Policies to mitigate cross-site scripting and other |
964 // vulnerabilities. | 964 // vulnerabilities. |
965 std::string content_security_policy_; | 965 std::string content_security_policy_; |
966 | 966 |
967 FRIEND_TEST_ALL_PREFIXES(ExtensionTest, LoadPageActionHelper); | 967 FRIEND_TEST_ALL_PREFIXES(ExtensionTest, LoadPageActionHelper); |
968 FRIEND_TEST_ALL_PREFIXES(::TabStripModelTest, Apps); | 968 FRIEND_TEST_ALL_PREFIXES(::TabStripModelTest, Apps); |
969 | 969 |
970 DISALLOW_COPY_AND_ASSIGN(Extension); | 970 DISALLOW_COPY_AND_ASSIGN(Extension); |
971 }; | 971 }; |
972 | 972 |
973 typedef std::vector< scoped_refptr<const Extension> > ExtensionList; | 973 typedef std::vector<scoped_refptr<const Extension> > ExtensionList; |
974 typedef std::set<std::string> ExtensionIdSet; | 974 typedef std::set<std::string> ExtensionIdSet; |
975 typedef std::vector<std::string> ExtensionIdList; | 975 typedef std::vector<std::string> ExtensionIdList; |
976 | 976 |
977 // Handy struct to pass core extension info around. | 977 // Handy struct to pass core extension info around. |
978 struct ExtensionInfo { | 978 struct ExtensionInfo { |
979 ExtensionInfo(const base::DictionaryValue* manifest, | 979 ExtensionInfo(const base::DictionaryValue* manifest, |
980 const std::string& id, | 980 const std::string& id, |
981 const base::FilePath& path, | 981 const base::FilePath& path, |
982 Manifest::Location location); | 982 Manifest::Location location); |
983 ~ExtensionInfo(); | 983 ~ExtensionInfo(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 | 1024 |
1025 UpdatedExtensionPermissionsInfo( | 1025 UpdatedExtensionPermissionsInfo( |
1026 const Extension* extension, | 1026 const Extension* extension, |
1027 const PermissionSet* permissions, | 1027 const PermissionSet* permissions, |
1028 Reason reason); | 1028 Reason reason); |
1029 }; | 1029 }; |
1030 | 1030 |
1031 } // namespace extensions | 1031 } // namespace extensions |
1032 | 1032 |
1033 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1033 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |