kAudioCapture,
kAutoTestPrivate,
kBackground,
- kBluetooth,
kBookmark,
kBookmarkManagerPrivate,
kBrailleDisplayPrivate,
kFullscreen,
kGcm,
kGeolocation,
+ kHid,
kHistory,
kHomepage,
+ kHotwordPrivate,
kIdentity,
kIdentityPrivate,
kIdltest,
// Returns true if |rhs| is equal to this.
virtual bool Equal(const APIPermission* rhs) const = 0;
- // Parses the APIPermission from |value|. Returns false if error happens.
- virtual bool FromValue(const base::Value* value) = 0;
+ // Parses the APIPermission from |value|. Returns false if an error happens
+ // and optionally set |error| if |error| is not NULL.
+ virtual bool FromValue(const base::Value* value, std::string* error) = 0;
// Stores this into a new created |value|.
virtual scoped_ptr<base::Value> ToValue() const = 0;
}
private:
- // Instances should only be constructed from within a
- // PermissionsInfo::Delegate.
+ // Instances should only be constructed from within a PermissionsProvider.
friend class ChromeAPIPermissions;
// Implementations of APIPermission will want to get the permission message,
// but this class's implementation should be hidden from everyone else.