| 123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include "WallpaperEngine/Application/ApplicationContext.h"
- #include "include/cef_app.h"
- #include "include/cef_browser_process_handler.h"
- #include "include/wrapper/cef_helpers.h"
- #include <string>
- #define WPENGINE_SCHEME "wp"
- namespace WallpaperEngine::Application {
- class WallpaperApplication;
- }
- namespace WallpaperEngine::WebBrowser::CEF {
- class BrowserApp;
- }
- namespace WallpaperEngine::WebBrowser {
- class WebBrowserContext {
- public:
- explicit WebBrowserContext (WallpaperEngine::Application::WallpaperApplication& wallpaperApplication);
- ~WebBrowserContext ();
- private:
- CefRefPtr<CefApp> m_browserApplication = nullptr;
- CefRefPtr<CefCommandLine> m_commandLine = nullptr;
- // Chromium profile of this process, created under the temp directory and removed once CEF is shut down
- std::string m_cachePath;
- WallpaperEngine::Application::WallpaperApplication& m_wallpaperApplication;
- };
- } // namespace WallpaperEngine::WebBrowser
|