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

Unified Diff: extensions/common/manifest_handler.h

Issue 2846553003: Extensions: Clarify ManifestHandler interface expectations. (Closed)
Patch Set: Nits. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/common/manifest_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/manifest_handler.h
diff --git a/extensions/common/manifest_handler.h b/extensions/common/manifest_handler.h
index d1cf4648925149d133d86cb8878edfb417364708..f37729129f27a9135c0b3f3a64576a9bbd5e0291 100644
--- a/extensions/common/manifest_handler.h
+++ b/extensions/common/manifest_handler.h
@@ -29,11 +29,13 @@ class ManifestHandler {
// Attempts to parse the extension's manifest.
// Returns true on success or false on failure; if false, |error| will
// be set to a failure message.
+ // This does not perform any IO operations.
lazyboy 2017/04/26 22:53:03 Thinking about it, this doesn't seem that helpful,
karandeepb 2017/04/26 22:57:38 We were doing IO for Validate as in the example I
virtual bool Parse(Extension* extension, base::string16* error) = 0;
// Validate that files associated with this manifest key exist.
// Validation takes place after parsing. May also append a series of
// warning messages to |warnings|.
+ // This may perform IO operations.
//
// Otherwise, returns false, and a description of the error is
// returned in |error|.
@@ -89,7 +91,8 @@ class ManifestHandler {
// this extension.
static bool ParseExtension(Extension* extension, base::string16* error);
- // Call Validate on all registered manifest handlers for this extension.
+ // Call Validate on all registered manifest handlers for this extension. This
+ // may perform IO operations.
static bool ValidateExtension(const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings);
« no previous file with comments | « no previous file | extensions/common/manifest_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698