blob: a09668c1e7154939cc286229c0691adfe2c488b9 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This extension API contains system-wide preferences and functions that shall
// be only available to component extensions.
#ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
#include "extensions/browser/extension_function.h"
namespace extensions {
class SystemPrivateGetIncognitoModeAvailabilityFunction
: public ExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("systemPrivate.getIncognitoModeAvailability",
SYSTEMPRIVATE_GETINCOGNITOMODEAVAILABILITY)
protected:
~SystemPrivateGetIncognitoModeAvailabilityFunction() override {}
// ExtensionFunction:
ResponseAction Run() override;
};
// API function which returns the status of system update.
class SystemPrivateGetUpdateStatusFunction : public ExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("systemPrivate.getUpdateStatus",
SYSTEMPRIVATE_GETUPDATESTATUS)
protected:
~SystemPrivateGetUpdateStatusFunction() override {}
// ExtensionFunction:
ResponseAction Run() override;
};
// API function which returns the Google API key.
class SystemPrivateGetApiKeyFunction : public ExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("systemPrivate.getApiKey", SYSTEMPRIVATE_GETAPIKEY)
protected:
~SystemPrivateGetApiKeyFunction() override {}
// ExtensionFunction:
ResponseAction Run() override;
};
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_