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

Unified Diff: Source/modules/app_banner/AppBannerController.h

Issue 1315743003: [part 1] Make classes and structures in modules/ fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
Index: Source/modules/app_banner/AppBannerController.h
diff --git a/Source/modules/app_banner/AppBannerController.h b/Source/modules/app_banner/AppBannerController.h
index da4ccf80e73399e7660ab8a7fe63559577795dd0..4c53291ba777f0e893d96cb68cd66f999c9de9b4 100644
--- a/Source/modules/app_banner/AppBannerController.h
+++ b/Source/modules/app_banner/AppBannerController.h
@@ -6,6 +6,7 @@
#define AppBannerController_h
#include "modules/ModulesExport.h"
+#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
namespace blink {
@@ -19,13 +20,9 @@ template <typename T> class WebVector;
// FIXME: unless userChoice ends up implemented, this class should not exist and
// a regular static method could be used instead.
class MODULES_EXPORT AppBannerController final {
- WTF_MAKE_NONCOPYABLE(AppBannerController);
+ STATIC_ONLY(AppBannerController);
public:
static void willShowInstallBannerPrompt(int requestId, WebAppBannerClient*, LocalFrame*, const WebVector<WebString>& platforms, WebAppBannerPromptReply*);
-
-private:
- AppBannerController() = delete;
- ~AppBannerController() = delete;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698