Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: chrome/common/extensions/extension.h

Issue 12211029: Sanity tweaks to the extension blacklist: check all extensions at once on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mpcomplete Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698