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