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

Side by Side Diff: extensions/common/manifest_handler.h

Issue 101203008: Allow app_shell to run past extension manifest parsing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup register_manifest Created 6 years, 11 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 | « extensions/common/extensions_client.h ('k') | extensions/extensions.gyp » ('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 EXTENSIONS_COMMON_MANIFEST_HANDLER_H_ 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLER_H_
6 #define EXTENSIONS_COMMON_MANIFEST_HANDLER_H_ 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // The list of keys that, if present, should be parsed before calling our 56 // The list of keys that, if present, should be parsed before calling our
57 // Parse (typically, because our Parse needs to read those keys). 57 // Parse (typically, because our Parse needs to read those keys).
58 // Defaults to empty. 58 // Defaults to empty.
59 virtual const std::vector<std::string> PrerequisiteKeys() const; 59 virtual const std::vector<std::string> PrerequisiteKeys() const;
60 60
61 // Associate us with our keys() in the manifest. A handler can register 61 // Associate us with our keys() in the manifest. A handler can register
62 // for multiple keys. The global registry takes ownership of this; 62 // for multiple keys. The global registry takes ownership of this;
63 // if it has an existing handler for |key|, it replaces it with this. 63 // if it has an existing handler for |key|, it replaces it with this.
64 // Manifest handlers must be registered at process startup in 64 // Manifest handlers must be registered at process startup in
65 // chrome_manifest_handlers.cc: 65 // common_manifest_handlers.cc or chrome_manifest_handlers.cc:
66 // (new MyManifestHandler)->Register(); 66 // (new MyManifestHandler)->Register();
67 void Register(); 67 void Register();
68 68
69 // Creates a |ManifestPermission| instance for the given manifest key |name|. 69 // Creates a |ManifestPermission| instance for the given manifest key |name|.
70 // The returned permission does not contain any permission data, so this 70 // The returned permission does not contain any permission data, so this
71 // method is usually used before calling |FromValue| or |Read|. Returns 71 // method is usually used before calling |FromValue| or |Read|. Returns
72 // |NULL| if the manifest handler does not support custom permissions. 72 // |NULL| if the manifest handler does not support custom permissions.
73 virtual ManifestPermission* CreatePermission(); 73 virtual ManifestPermission* CreatePermission();
74 74
75 // Creates a |ManifestPermission| instance containing the initial set of 75 // Creates a |ManifestPermission| instance containing the initial set of
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // The priority for each manifest handler. Handlers with lower priority 164 // The priority for each manifest handler. Handlers with lower priority
165 // values are evaluated first. 165 // values are evaluated first.
166 ManifestHandlerPriorityMap priority_map_; 166 ManifestHandlerPriorityMap priority_map_;
167 167
168 bool is_finalized_; 168 bool is_finalized_;
169 }; 169 };
170 170
171 } // namespace extensions 171 } // namespace extensions
172 172
173 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLER_H_ 173 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLER_H_
OLDNEW
« no previous file with comments | « extensions/common/extensions_client.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698