class SettingsFunction : public UIThreadExtensionFunction {
protected:
SettingsFunction();
- virtual ~SettingsFunction();
+ ~SettingsFunction() override;
// ExtensionFunction:
- virtual bool ShouldSkipQuotaLimiting() const OVERRIDE;
- virtual ResponseAction Run() OVERRIDE;
+ bool ShouldSkipQuotaLimiting() const override;
+ ResponseAction Run() override;
// Extension settings function implementations should do their work here.
// The StorageFrontend makes sure this is posted to the appropriate thread.
DECLARE_EXTENSION_FUNCTION("storage.get", STORAGE_GET)
protected:
- virtual ~StorageStorageAreaGetFunction() {}
+ ~StorageStorageAreaGetFunction() override {}
// SettingsFunction:
- virtual ResponseValue RunWithStorage(ValueStore* storage) OVERRIDE;
+ ResponseValue RunWithStorage(ValueStore* storage) override;
};
class StorageStorageAreaSetFunction : public SettingsFunction {
DECLARE_EXTENSION_FUNCTION("storage.set", STORAGE_SET)
protected:
- virtual ~StorageStorageAreaSetFunction() {}
+ ~StorageStorageAreaSetFunction() override {}
// SettingsFunction:
- virtual ResponseValue RunWithStorage(ValueStore* storage) OVERRIDE;
+ ResponseValue RunWithStorage(ValueStore* storage) override;
// ExtensionFunction:
- virtual void GetQuotaLimitHeuristics(
- QuotaLimitHeuristics* heuristics) const OVERRIDE;
+ void GetQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) const override;
};
class StorageStorageAreaRemoveFunction : public SettingsFunction {
DECLARE_EXTENSION_FUNCTION("storage.remove", STORAGE_REMOVE)
protected:
- virtual ~StorageStorageAreaRemoveFunction() {}
+ ~StorageStorageAreaRemoveFunction() override {}
// SettingsFunction:
- virtual ResponseValue RunWithStorage(ValueStore* storage) OVERRIDE;
+ ResponseValue RunWithStorage(ValueStore* storage) override;
// ExtensionFunction:
- virtual void GetQuotaLimitHeuristics(
- QuotaLimitHeuristics* heuristics) const OVERRIDE;
+ void GetQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) const override;
};
class StorageStorageAreaClearFunction : public SettingsFunction {
DECLARE_EXTENSION_FUNCTION("storage.clear", STORAGE_CLEAR)
protected:
- virtual ~StorageStorageAreaClearFunction() {}
+ ~StorageStorageAreaClearFunction() override {}
// SettingsFunction:
- virtual ResponseValue RunWithStorage(ValueStore* storage) OVERRIDE;
+ ResponseValue RunWithStorage(ValueStore* storage) override;
// ExtensionFunction:
- virtual void GetQuotaLimitHeuristics(
- QuotaLimitHeuristics* heuristics) const OVERRIDE;
+ void GetQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) const override;
};
class StorageStorageAreaGetBytesInUseFunction : public SettingsFunction {
DECLARE_EXTENSION_FUNCTION("storage.getBytesInUse", STORAGE_GETBYTESINUSE)
protected:
- virtual ~StorageStorageAreaGetBytesInUseFunction() {}
+ ~StorageStorageAreaGetBytesInUseFunction() override {}
// SettingsFunction:
- virtual ResponseValue RunWithStorage(ValueStore* storage) OVERRIDE;
+ ResponseValue RunWithStorage(ValueStore* storage) override;
};
} // namespace extensions