]> git.sesse.net Git - nageru/blobdiff - nageru_cef_app.h
Do not link kaeru against CEF.
[nageru] / nageru_cef_app.h
index dff98441db7b2f4e4cc0447a6560694b2d906f54..1a7ca1afeb6b9c015fa6b40a5b692b8af02b3424 100644 (file)
@@ -33,8 +33,8 @@
 class CEFTaskAdapter : public CefTask
 {
 public:
-       CEFTaskAdapter(const std::function<void()>& func)
-               : func(func) {}
+       CEFTaskAdapter(const std::function<void()>&& func)
+               : func(std::move(func)) {}
        void Execute() override { func(); }
 
 private:
@@ -78,8 +78,6 @@ public:
 
        void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line);
 
-       void OnBrowserDestroyed(CefRefPtr<CefBrowser> browser) override;
-
 private:
        void cef_thread_func();
 
@@ -88,8 +86,6 @@ private:
        int cef_thread_refcount = 0;  // Under <cef_mutex>.
        bool cef_initialized = false;  // Under <cef_mutex>.
        std::condition_variable cef_initialized_cond;
-       std::unordered_set<CefBrowser *> pending_browsers;  // Under <cef_mutex>.
-       std::condition_variable browser_closed_cond;
 
        IMPLEMENT_REFCOUNTING(NageruCefApp);
 };