Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.h

Issue 2328643003: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Remove GetProfile() usage Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autotest_private/autotest_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/autotest_private/autotest_private_api.h
diff --git a/chrome/browser/extensions/api/autotest_private/autotest_private_api.h b/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
index 092329ecf3fb62c24a3e9a47cd6179e3f6f9df28..a84c368557d419f291a95717bc2d88927ecdb889 100644
--- a/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
+++ b/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
@@ -14,155 +14,153 @@
namespace extensions {
-class AutotestPrivateLogoutFunction : public ChromeSyncExtensionFunction {
+class AutotestPrivateLogoutFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.logout", AUTOTESTPRIVATE_LOGOUT)
private:
~AutotestPrivateLogoutFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class AutotestPrivateRestartFunction : public ChromeSyncExtensionFunction {
+class AutotestPrivateRestartFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.restart", AUTOTESTPRIVATE_RESTART)
private:
~AutotestPrivateRestartFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class AutotestPrivateShutdownFunction : public ChromeSyncExtensionFunction {
+class AutotestPrivateShutdownFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.shutdown",
AUTOTESTPRIVATE_SHUTDOWN)
private:
~AutotestPrivateShutdownFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class AutotestPrivateLoginStatusFunction : public ChromeSyncExtensionFunction {
+class AutotestPrivateLoginStatusFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.loginStatus",
AUTOTESTPRIVATE_LOGINSTATUS)
private:
~AutotestPrivateLoginStatusFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class AutotestPrivateLockScreenFunction : public ChromeSyncExtensionFunction {
+class AutotestPrivateLockScreenFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.lockScreen",
AUTOTESTPRIVATE_LOCKSCREEN)
private:
~AutotestPrivateLockScreenFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateGetExtensionsInfoFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.getExtensionsInfo",
AUTOTESTPRIVATE_GETEXTENSIONSINFO)
private:
~AutotestPrivateGetExtensionsInfoFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateSimulateAsanMemoryBugFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.simulateAsanMemoryBug",
AUTOTESTPRIVATE_SIMULATEASANMEMORYBUG)
private:
~AutotestPrivateSimulateAsanMemoryBugFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateSetTouchpadSensitivityFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.setTouchpadSensitivity",
AUTOTESTPRIVATE_SETTOUCHPADSENSITIVITY)
private:
~AutotestPrivateSetTouchpadSensitivityFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class AutotestPrivateSetTapToClickFunction
- : public ChromeSyncExtensionFunction {
+class AutotestPrivateSetTapToClickFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.setTapToClick",
AUTOTESTPRIVATE_SETTAPTOCLICK)
private:
~AutotestPrivateSetTapToClickFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateSetThreeFingerClickFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.setThreeFingerClick",
AUTOTESTPRIVATE_SETTHREEFINGERCLICK)
private:
~AutotestPrivateSetThreeFingerClickFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class AutotestPrivateSetTapDraggingFunction
- : public ChromeSyncExtensionFunction {
+class AutotestPrivateSetTapDraggingFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.setTapDragging",
AUTOTESTPRIVATE_SETTAPDRAGGING)
private:
~AutotestPrivateSetTapDraggingFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateSetNaturalScrollFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.setNaturalScroll",
AUTOTESTPRIVATE_SETNATURALSCROLL)
private:
~AutotestPrivateSetNaturalScrollFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateSetMouseSensitivityFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.setMouseSensitivity",
AUTOTESTPRIVATE_SETMOUSESENSITIVITY)
private:
~AutotestPrivateSetMouseSensitivityFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateSetPrimaryButtonRightFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.setPrimaryButtonRight",
AUTOTESTPRIVATE_SETPRIMARYBUTTONRIGHT)
private:
~AutotestPrivateSetPrimaryButtonRightFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class AutotestPrivateGetVisibleNotificationsFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("autotestPrivate.getVisibleNotifications",
AUTOTESTPRIVATE_GETVISIBLENOTIFICATIONS)
@@ -171,7 +169,7 @@ class AutotestPrivateGetVisibleNotificationsFunction
static std::string ConvertToString(message_center::NotificationType type);
~AutotestPrivateGetVisibleNotificationsFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
// Don't kill the browser when we're in a browser test.
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autotest_private/autotest_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698