Use scoped_refptr<> instead of raw pointer

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1495 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-10-29 19:14:52 +00:00
parent 0c45f66d37
commit b64c1b3dd2
1 changed files with 3 additions and 2 deletions

View File

@ -73,7 +73,8 @@ class NET_EXPORT CefURLFetcherResponseWriter :
if (url_request_) {
message_loop_proxy_->PostTask(FROM_HERE,
base::Bind(&CefURLFetcherResponseWriter::WriteOnClientThread,
url_request_, buffer, num_bytes, callback,
url_request_, scoped_refptr<net::IOBuffer>(buffer),
num_bytes, callback,
base::MessageLoop::current()->message_loop_proxy()));
return net::ERR_IO_PENDING;
}
@ -89,7 +90,7 @@ class NET_EXPORT CefURLFetcherResponseWriter :
private:
static void WriteOnClientThread(
CefRefPtr<CefBrowserURLRequest> url_request,
net::IOBuffer* buffer,
scoped_refptr<net::IOBuffer> buffer,
int num_bytes,
const net::CompletionCallback& callback,
scoped_refptr<base::MessageLoopProxy> source_message_loop_proxy) {