mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
libcef:
- Initialize WebKit in the UI thread to avoid asserts due to WTF::isMainThread() returning false. (Issue #21, Issue #24). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@27 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
#include "../include/cef.h"
|
||||
#include "base/at_exit.h"
|
||||
#include "base/message_loop.h"
|
||||
#include "base/stats_table.h"
|
||||
#include "base/gfx/native_widget_types.h"
|
||||
#include "webkit/glue/webpreferences.h"
|
||||
#include "browser_webkit_init.h"
|
||||
|
||||
class BrowserWebKitInit;
|
||||
class CefBrowserImpl;
|
||||
|
||||
class CefContext : public CefThreadSafeBase<CefBase>
|
||||
@@ -78,8 +79,8 @@ protected:
|
||||
|
||||
// Initialize the AtExitManager to avoid asserts and possible memory leaks.
|
||||
base::AtExitManager at_exit_manager_;
|
||||
// Initialize WebKit for this scope.
|
||||
BrowserWebKitInit webkit_init_;
|
||||
// WebKit implementation class.
|
||||
BrowserWebKitInit* webkit_init_;
|
||||
|
||||
// Used for assigning unique IDs to browser instances.
|
||||
int next_browser_id_;
|
||||
|
Reference in New Issue
Block a user