diff options
author | haibinlu <haibinlu@chromium.org> | 2015-11-20 13:35:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-20 21:36:25 +0000 |
commit | c539f3d84bd5bf809cc0744ae2fb356e707ee05a (patch) | |
tree | 72f9c805334bd68a64f7b696742f0936bf3ace67 /blimp/net/blimp_transport.h | |
parent | d9328a9fd1539e3113eae1a17bd7983f2a5bdb19 (diff) | |
download | chromium_src-c539f3d84bd5bf809cc0744ae2fb356e707ee05a.zip chromium_src-c539f3d84bd5bf809cc0744ae2fb356e707ee05a.tar.gz chromium_src-c539f3d84bd5bf809cc0744ae2fb356e707ee05a.tar.bz2 |
[Blimp Net] Makes BlimpTransport.Connect async-only
BUG=558643
Review URL: https://codereview.chromium.org/1459923004
Cr-Commit-Position: refs/heads/master@{#360919}
Diffstat (limited to 'blimp/net/blimp_transport.h')
-rw-r--r-- | blimp/net/blimp_transport.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/blimp/net/blimp_transport.h b/blimp/net/blimp_transport.h index 56d5e34..dcc68c6 100644 --- a/blimp/net/blimp_transport.h +++ b/blimp/net/blimp_transport.h @@ -22,14 +22,12 @@ class BlimpTransport { // Initiate or listen for a connection. // - // Returns net::OK if a connection is established synchronously. - // Returns an error code if a synchronous error occurred. - // Returns net::ERR_IO_PENDING if the connection is being established - // asynchronously. |callback| is later invoked with the connection outcome. - // - // If the connection is successful, the BlimpConnection can be taken by - // calling TakeConnectedSocket(). - virtual int Connect(const net::CompletionCallback& callback) = 0; + // |callback| will be invoked with the connection outcome: + // * net::OK if a connection is established successful, the BlimpConnection + // can be taken by calling TakeConnection(). + // * net::ERR_IO_PENDING will never be the outcome + // * Other error code indicates no connection was established. + virtual void Connect(const net::CompletionCallback& callback) = 0; // Returns the connection object after a successful Connect(). virtual scoped_ptr<BlimpConnection> TakeConnection() = 0; |