| 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 089a02333a4a8cf5c2467b6cc26855d9345eb524..092329ecf3fb62c24a3e9a47cd6179e3f6f9df28 100644
|
| --- a/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
|
| +++ b/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "chrome/browser/extensions/chrome_extension_function.h"
|
| #include "extensions/browser/browser_context_keyed_api_factory.h"
|
| +#include "ui/message_center/notification_types.h"
|
|
|
| namespace extensions {
|
|
|
| @@ -160,6 +161,19 @@ class AutotestPrivateSetPrimaryButtonRightFunction
|
| bool RunSync() override;
|
| };
|
|
|
| +class AutotestPrivateGetVisibleNotificationsFunction
|
| + : public ChromeSyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("autotestPrivate.getVisibleNotifications",
|
| + AUTOTESTPRIVATE_GETVISIBLENOTIFICATIONS)
|
| +
|
| + private:
|
| + static std::string ConvertToString(message_center::NotificationType type);
|
| +
|
| + ~AutotestPrivateGetVisibleNotificationsFunction() override {}
|
| + bool RunSync() override;
|
| +};
|
| +
|
| // Don't kill the browser when we're in a browser test.
|
| void SetAutotestPrivateTest();
|
|
|
|
|