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

Unified Diff: ppapi/cpp/private/flash_net_connector.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/cpp/private/flash_menu.cc ('k') | ppapi/cpp/url_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/flash_net_connector.cc
===================================================================
--- ppapi/cpp/private/flash_net_connector.cc (revision 91178)
+++ ppapi/cpp/private/flash_net_connector.cc (working copy)
@@ -38,7 +38,7 @@
PP_Flash_NetAddress* remote_addr_out,
const CompletionCallback& cc) {
if (!has_interface<PPB_Flash_NetConnector>())
- return PP_ERROR_NOINTERFACE;
+ return cc.MayForce(PP_ERROR_NOINTERFACE);
return get_interface<PPB_Flash_NetConnector>()->ConnectTcp(
pp_resource(),
host, port,
@@ -52,7 +52,7 @@
PP_Flash_NetAddress* remote_addr_out,
const CompletionCallback& cc) {
if (!has_interface<PPB_Flash_NetConnector>())
- return PP_ERROR_NOINTERFACE;
+ return cc.MayForce(PP_ERROR_NOINTERFACE);
return get_interface<PPB_Flash_NetConnector>()->ConnectTcpAddress(
pp_resource(),
addr,
« no previous file with comments | « ppapi/cpp/private/flash_menu.cc ('k') | ppapi/cpp/url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698