[WRTjs] Refactor popup
[platform/framework/web/chromium-efl.git] / wrt / src / browser / wrt_browser_main_parts.h
1 #ifndef BROWSER_WRT_BROWSER_MAIN_PARTS_H_
2 #define BROWSER_WRT_BROWSER_MAIN_PARTS_H_
3
4 #include "base/allocator/buildflags.h"
5 #include "electron/shell/browser/electron_browser_main_parts.h"
6
7 #if BUILDFLAG(USE_ALLOCATOR_SHIM)
8 #include "tizen_src/ewk/efl_integration/browser/profiling_host/browser_main_extra_parts_profiling.h"
9 #endif
10
11 namespace base {
12 class MessageLoop;
13 }
14
15 namespace wrt {
16
17 class WRTBrowserMainParts : public electron::ElectronBrowserMainParts {
18  public:
19   WRTBrowserMainParts();
20   virtual ~WRTBrowserMainParts();
21
22   WRTBrowserMainParts(const WRTBrowserMainParts&) = delete;
23   WRTBrowserMainParts& operator=(const WRTBrowserMainParts&) = delete;
24
25  private:
26   // content::BrowserMainParts:
27   void PreCreateMainMessageLoop() override;
28   int PreCreateThreads() override;
29   int PreMainMessageLoopRun() override;
30
31 #if BUILDFLAG(USE_ALLOCATOR_SHIM)
32   void PostCreateThreads() override;
33
34   BrowserMainExtraPartsProfiling extra_parts_profiling_;
35 #endif
36 };
37
38 }  // namespace wrt
39
40 #endif  // BROWSER_WRT_BROWSER_MAIN_PARTS_H_