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

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

Issue 12218064: Non-web-accessible extension URLs should not load in non-extension processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for a failing unit test 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/renderer/extensions/resource_request_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class ImageSkia; 49 class ImageSkia;
50 } 50 }
51 51
52 FORWARD_DECLARE_TEST(TabStripModelTest, Apps); 52 FORWARD_DECLARE_TEST(TabStripModelTest, Apps);
53 53
54 namespace extensions { 54 namespace extensions {
55 struct ActionInfo; 55 struct ActionInfo;
56 class PermissionSet; 56 class PermissionSet;
57 57
58 // Represents a Chrome extension. 58 // Represents a Chrome extension.
59 // Once created, an Extension object is immutable, with the exception of its
60 // RuntimeData. This makes it safe to use on any thread, since access to the
61 // RuntimeData is protected by a lock.
59 class Extension : public base::RefCountedThreadSafe<Extension> { 62 class Extension : public base::RefCountedThreadSafe<Extension> {
60 public: 63 public:
61 struct ManifestData; 64 struct ManifestData;
62 65
63 typedef std::vector<std::string> ScriptingWhitelist; 66 typedef std::vector<std::string> ScriptingWhitelist;
64 typedef std::map<const std::string, linked_ptr<ManifestData> > 67 typedef std::map<const std::string, linked_ptr<ManifestData> >
65 ManifestDataMap; 68 ManifestDataMap;
66 69
67 enum State { 70 enum State {
68 DISABLED = 0, 71 DISABLED = 0,
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 964
962 UpdatedExtensionPermissionsInfo( 965 UpdatedExtensionPermissionsInfo(
963 const Extension* extension, 966 const Extension* extension,
964 const PermissionSet* permissions, 967 const PermissionSet* permissions,
965 Reason reason); 968 Reason reason);
966 }; 969 };
967 970
968 } // namespace extensions 971 } // namespace extensions
969 972
970 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 973 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/renderer/extensions/resource_request_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698