X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru_cef_app.h;h=7b8969bbc7224e863d13b191049f424390b0cae7;hp=dff98441db7b2f4e4cc0447a6560694b2d906f54;hb=refs%2Fheads%2Fffmpeg-audio-only;hpb=b68d8a25951faf5b967b7a35fa0a363b4b68fbc0 diff --git a/nageru_cef_app.h b/nageru_cef_app.h index dff9844..7b8969b 100644 --- a/nageru_cef_app.h +++ b/nageru_cef_app.h @@ -33,8 +33,8 @@ class CEFTaskAdapter : public CefTask { public: - CEFTaskAdapter(const std::function& func) - : func(func) {} + CEFTaskAdapter(const std::function&& func) + : func(std::move(func)) {} void Execute() override { func(); } private: @@ -76,9 +76,7 @@ public: return this; } - void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr command_line); - - void OnBrowserDestroyed(CefRefPtr browser) override; + void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr command_line) override; private: void cef_thread_func(); @@ -88,8 +86,6 @@ private: int cef_thread_refcount = 0; // Under . bool cef_initialized = false; // Under . std::condition_variable cef_initialized_cond; - std::unordered_set pending_browsers; // Under . - std::condition_variable browser_closed_cond; IMPLEMENT_REFCOUNTING(NageruCefApp); };