// Returns false in case of failure and sets writes error message
// in |error| if present.
virtual bool Validate(scoped_refptr<const ApplicationData> application,
- std::string* error,
- std::vector<InstallWarning>* warnings) const;
+ std::string* error) const;
// If false (the default), only parse the manifest if a registered
// key is present in the manifest. If true, always attempt to parse
~ManifestHandlerRegistry();
static ManifestHandlerRegistry* GetInstance(
- Manifest::PackageType package_type);
+ Package::Type package_type);
bool ParseAppManifest(
scoped_refptr<ApplicationData> application, base::string16* error);
bool ValidateAppManifest(scoped_refptr<const ApplicationData> application,
- std::string* error,
- std::vector<InstallWarning>* warnings);
+ std::string* error);
private:
friend class ScopedTestingManifestHandlerRegistry;
// Sets a new global registry, for testing purposes.
static void SetInstanceForTesting(ManifestHandlerRegistry* registry,
- Manifest::PackageType package_type);
+ Package::Type package_type);
static ManifestHandlerRegistry* GetInstanceForWGT();
static ManifestHandlerRegistry* GetInstanceForXPK();