blob: d7ffe5a594658b268af72f28294411aea8e23bf9 [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 = default;
// 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 = default;
// 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 = default;
// ExtensionFunction:
ResponseAction Run() override;
};
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_