summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/fake_authenticator.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-05 05:19:27 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-05 05:19:27 +0000
commitd7c6cc2c268b1dec8f3834220f2acb36a1799a76 (patch)
treebf3c25458670af664f08f70f2161e228b09bba60 /remoting/protocol/fake_authenticator.h
parentbf59eb89147f0479439f5d0672d9d8627c452758 (diff)
downloadchromium_src-d7c6cc2c268b1dec8f3834220f2acb36a1799a76.zip
chromium_src-d7c6cc2c268b1dec8f3834220f2acb36a1799a76.tar.gz
chromium_src-d7c6cc2c268b1dec8f3834220f2acb36a1799a76.tar.bz2
Use scoped_ptr<> for channel creation callbacks.
Changed callbacks in Session and ChannelAuthenticator interfaces for cleaner ownership semantics. Review URL: https://chromiumcodereview.appspot.com/9316074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/fake_authenticator.h')
-rw-r--r--remoting/protocol/fake_authenticator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/remoting/protocol/fake_authenticator.h b/remoting/protocol/fake_authenticator.h
index d9750a5..1363f29 100644
--- a/remoting/protocol/fake_authenticator.h
+++ b/remoting/protocol/fake_authenticator.h
@@ -19,13 +19,14 @@ class FakeChannelAuthenticator : public ChannelAuthenticator {
// ChannelAuthenticator interface.
virtual void SecureAndAuthenticate(
- net::StreamSocket* socket, const DoneCallback& done_callback) OVERRIDE;
+ scoped_ptr<net::StreamSocket> socket,
+ const DoneCallback& done_callback) OVERRIDE;
private:
void CallCallback(
const DoneCallback& done_callback,
net::Error error,
- net::StreamSocket* socket);
+ scoped_ptr<net::StreamSocket> socket);
bool accept_;
bool async_;