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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef AppBannerController_h 5 #ifndef AppBannerController_h
6 #define AppBannerController_h 6 #define AppBannerController_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "wtf/Allocator.h"
9 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 enum class WebAppBannerPromptReply; 14 enum class WebAppBannerPromptReply;
14 class LocalFrame; 15 class LocalFrame;
15 class WebAppBannerClient; 16 class WebAppBannerClient;
16 class WebString; 17 class WebString;
17 template <typename T> class WebVector; 18 template <typename T> class WebVector;
18 19
19 // FIXME: unless userChoice ends up implemented, this class should not exist and 20 // FIXME: unless userChoice ends up implemented, this class should not exist and
20 // a regular static method could be used instead. 21 // a regular static method could be used instead.
21 class MODULES_EXPORT AppBannerController final { 22 class MODULES_EXPORT AppBannerController final {
22 WTF_MAKE_NONCOPYABLE(AppBannerController); 23 STATIC_ONLY(AppBannerController);
23 public: 24 public:
24 static void willShowInstallBannerPrompt(int requestId, WebAppBannerClient*, LocalFrame*, const WebVector<WebString>& platforms, WebAppBannerPromptReply*); 25 static void willShowInstallBannerPrompt(int requestId, WebAppBannerClient*, LocalFrame*, const WebVector<WebString>& platforms, WebAppBannerPromptReply*);
25
26 private:
27 AppBannerController() = delete;
28 ~AppBannerController() = delete;
29 }; 26 };
30 27
31 } // namespace blink 28 } // namespace blink
32 29
33 #endif // AppBannerController_h 30 #endif // AppBannerController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698