Chromium change: https://chromium.googlesource.com/chromium/src/+/fd4db3db83c7564f55679d9700a6f2e6641e3b13 commit fd4db3db83c7564f55679d9700a6f2e6641e3b13 Author: Clark DuVall <cduvall@chromium.org> Date: Tue Jul 30 19:10:43 2019 +0000 Remove all references to UIThreadExtensionFunction UIThreadExtensionFunction was merged into ExtensionFunction in http://crrev.com/c/1718990. This removes the stub UIThreadExtensionFunction class and renames all the references from UIThreadExtensionFunction to ExtensionFunction. This CL was generated with the command: git grep --name-only UIThreadExtensionFunction | \ xargs sed -i 's/UIThreadExtensionFunction/ExtensionFunction/g' Bug: 980774
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_BROWSER_EXTENSIONS_API_BRAVE_THEME_API_H_
|
|
#define BRAVE_BROWSER_EXTENSIONS_API_BRAVE_THEME_API_H_
|
|
|
|
#include "extensions/browser/extension_function.h"
|
|
|
|
namespace extensions {
|
|
namespace api {
|
|
|
|
class BraveThemeGetBraveThemeListFunction : public ExtensionFunction {
|
|
public:
|
|
DECLARE_EXTENSION_FUNCTION("braveTheme.getBraveThemeList", UNKNOWN)
|
|
|
|
protected:
|
|
~BraveThemeGetBraveThemeListFunction() override {}
|
|
|
|
ResponseAction Run() override;
|
|
};
|
|
|
|
class BraveThemeGetBraveThemeTypeFunction : public ExtensionFunction {
|
|
public:
|
|
DECLARE_EXTENSION_FUNCTION("braveTheme.getBraveThemeType", UNKNOWN)
|
|
|
|
protected:
|
|
~BraveThemeGetBraveThemeTypeFunction() override {}
|
|
|
|
ResponseAction Run() override;
|
|
};
|
|
|
|
class BraveThemeSetBraveThemeTypeFunction : public ExtensionFunction {
|
|
public:
|
|
DECLARE_EXTENSION_FUNCTION("braveTheme.setBraveThemeType", UNKNOWN)
|
|
|
|
protected:
|
|
~BraveThemeSetBraveThemeTypeFunction() override {}
|
|
|
|
ResponseAction Run() override;
|
|
};
|
|
|
|
} // namespace api
|
|
} // namespace extensions
|
|
|
|
#endif // BRAVE_BROWSER_EXTENSIONS_API_BRAVE_THEME_API_H_
|