mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Update to Chromium revision 105051.
- Enable use of clang compiler on Mac. - Add CefSettings.threaded_compositing_enabled option. - Begin converting NewRunnable usage to base::Bind. - Avoid assertion when an empty message is passed to OnConsoleMessage(). - Add an "--allow-partial" option to the make_distrib tool. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@316 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
#include "browser_devtools_client.h"
|
||||
#include "browser_impl.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/command_line.h"
|
||||
#include "base/message_loop.h"
|
||||
|
||||
@ -26,7 +27,7 @@ using WebKit::WebView;
|
||||
|
||||
BrowserDevToolsClient::BrowserDevToolsClient(CefBrowserImpl* browser,
|
||||
BrowserDevToolsAgent *agent)
|
||||
: ALLOW_THIS_IN_INITIALIZER_LIST(call_method_factory_(this)),
|
||||
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
|
||||
browser_(browser),
|
||||
dev_tools_agent_(agent),
|
||||
web_view_(browser->UIT_GetWebView()) {
|
||||
@ -38,7 +39,7 @@ BrowserDevToolsClient::BrowserDevToolsClient(CefBrowserImpl* browser,
|
||||
BrowserDevToolsClient::~BrowserDevToolsClient() {
|
||||
// It is a chance that page will be destroyed at detach step of
|
||||
// dev_tools_agent_ and we should clean pending requests a bit earlier.
|
||||
call_method_factory_.RevokeAll();
|
||||
weak_factory_.InvalidateWeakPtrs();
|
||||
if (dev_tools_agent_)
|
||||
dev_tools_agent_->detach();
|
||||
}
|
||||
@ -76,9 +77,10 @@ void BrowserDevToolsClient::undockWindow() {
|
||||
}
|
||||
|
||||
void BrowserDevToolsClient::AsyncCall(const BrowserDevToolsCallArgs &args) {
|
||||
MessageLoop::current()->PostDelayedTask(FROM_HERE,
|
||||
call_method_factory_.NewRunnableMethod(&BrowserDevToolsClient::Call,
|
||||
args), 0);
|
||||
MessageLoop::current()->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind(&BrowserDevToolsClient::Call, weak_factory_.GetWeakPtr(),
|
||||
args));
|
||||
}
|
||||
|
||||
void BrowserDevToolsClient::Call(const BrowserDevToolsCallArgs &args) {
|
||||
|
Reference in New Issue
Block a user