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

Unified Diff: extensions/browser/api/sockets_tcp/sockets_tcp_api.h

Issue 494573002: A change for the setPause() api in chrome.sockets.tcp: Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cosmetics and commentary. Created 5 years 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
Index: extensions/browser/api/sockets_tcp/sockets_tcp_api.h
diff --git a/extensions/browser/api/sockets_tcp/sockets_tcp_api.h b/extensions/browser/api/sockets_tcp/sockets_tcp_api.h
index 287ec1f32fc0db25e939ea985d4c502681908546..417f2afb7326a75adc9fc06a63fd9f9421051d6d 100644
--- a/extensions/browser/api/sockets_tcp/sockets_tcp_api.h
+++ b/extensions/browser/api/sockets_tcp/sockets_tcp_api.h
@@ -86,10 +86,12 @@ class SocketsTcpSetPausedFunction : public TCPSocketAsyncApiFunction {
// AsyncApiFunction
bool Prepare() override;
void Work() override;
+ void AsyncWorkStart() override;
private:
scoped_ptr<sockets_tcp::SetPaused::Params> params_;
TCPSocketEventDispatcher* socket_event_dispatcher_;
+ bool defer_completion_;
};
class SocketsTcpSetKeepAliveFunction : public TCPSocketAsyncApiFunction {

Powered by Google App Engine
This is Rietveld 408576698