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:
@@ -5,6 +5,7 @@
|
||||
#include "browser_file_writer.h"
|
||||
#include "cef_thread.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/message_loop_proxy.h"
|
||||
#include "net/url_request/url_request_context.h"
|
||||
@@ -43,8 +44,9 @@ class BrowserFileWriter::IOThreadProxy
|
||||
|
||||
void Truncate(const GURL& path, int64 offset) {
|
||||
if (!io_thread_->BelongsToCurrentThread()) {
|
||||
io_thread_->PostTask(FROM_HERE, NewRunnableMethod(
|
||||
this, &IOThreadProxy::Truncate, path, offset));
|
||||
io_thread_->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind(&IOThreadProxy::Truncate, this, path, offset));
|
||||
return;
|
||||
}
|
||||
DCHECK(!operation_);
|
||||
@@ -54,8 +56,9 @@ class BrowserFileWriter::IOThreadProxy
|
||||
|
||||
void Write(const GURL& path, const GURL& blob_url, int64 offset) {
|
||||
if (!io_thread_->BelongsToCurrentThread()) {
|
||||
io_thread_->PostTask(FROM_HERE, NewRunnableMethod(
|
||||
this, &IOThreadProxy::Write, path, blob_url, offset));
|
||||
io_thread_->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind(&IOThreadProxy::Write, this, path, blob_url, offset));
|
||||
return;
|
||||
}
|
||||
DCHECK(request_context_);
|
||||
@@ -66,8 +69,9 @@ class BrowserFileWriter::IOThreadProxy
|
||||
|
||||
void Cancel() {
|
||||
if (!io_thread_->BelongsToCurrentThread()) {
|
||||
io_thread_->PostTask(FROM_HERE, NewRunnableMethod(
|
||||
this, &IOThreadProxy::Cancel));
|
||||
io_thread_->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind(&IOThreadProxy::Cancel, this));
|
||||
return;
|
||||
}
|
||||
if (!operation_) {
|
||||
@@ -130,8 +134,9 @@ class BrowserFileWriter::IOThreadProxy
|
||||
|
||||
void DidSucceed() {
|
||||
if (!main_thread_->BelongsToCurrentThread()) {
|
||||
main_thread_->PostTask(FROM_HERE, NewRunnableMethod(
|
||||
this, &IOThreadProxy::DidSucceed));
|
||||
main_thread_->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind(&IOThreadProxy::DidSucceed, this));
|
||||
return;
|
||||
}
|
||||
if (simple_writer_)
|
||||
@@ -140,8 +145,9 @@ class BrowserFileWriter::IOThreadProxy
|
||||
|
||||
void DidFail(base::PlatformFileError error_code) {
|
||||
if (!main_thread_->BelongsToCurrentThread()) {
|
||||
main_thread_->PostTask(FROM_HERE, NewRunnableMethod(
|
||||
this, &IOThreadProxy::DidFail, error_code));
|
||||
main_thread_->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind(&IOThreadProxy::DidFail, this, error_code));
|
||||
return;
|
||||
}
|
||||
if (simple_writer_)
|
||||
@@ -150,8 +156,9 @@ class BrowserFileWriter::IOThreadProxy
|
||||
|
||||
void DidWrite(int64 bytes, bool complete) {
|
||||
if (!main_thread_->BelongsToCurrentThread()) {
|
||||
main_thread_->PostTask(FROM_HERE, NewRunnableMethod(
|
||||
this, &IOThreadProxy::DidWrite, bytes, complete));
|
||||
main_thread_->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind(&IOThreadProxy::DidWrite, this, bytes, complete));
|
||||
return;
|
||||
}
|
||||
if (simple_writer_)
|
||||
|
Reference in New Issue
Block a user