Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: remoting/client/plugin/pepper_port_allocator_session.cc

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_video_decoder_thunk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_port_allocator_session.cc
===================================================================
--- remoting/client/plugin/pepper_port_allocator_session.cc (revision 91178)
+++ remoting/client/plugin/pepper_port_allocator_session.cc (working copy)
@@ -121,7 +121,7 @@
fetch_callback_.reset(fetch_callback);
pp::CompletionCallback callback =
- callback_factory_.NewCallback(&PepperURLFetcher::DidOpen);
+ callback_factory_.NewOptionalCallback(&PepperURLFetcher::DidOpen);
int rv = loader_.Open(request, callback);
if (rv != PP_OK_COMPLETIONPENDING)
callback.Run(rv);
@@ -130,7 +130,7 @@
private:
void ReadMore() {
pp::CompletionCallback callback =
- callback_factory_.NewCallback(&PepperURLFetcher::DidRead);
+ callback_factory_.NewOptionalCallback(&PepperURLFetcher::DidRead);
int rv = loader_.ReadResponseBody(buf_, sizeof(buf_), callback);
if (rv != PP_OK_COMPLETIONPENDING)
callback.Run(rv);
« no previous file with comments | « ppapi/thunk/ppb_video_decoder_thunk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698