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

Side by Side Diff: remoting/protocol/jingle_channel_connector.h

Issue 9240033: Use scoped_ptr<>.Pass() to pass ownership in the remoting protocol code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ 5 #ifndef REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
6 #define REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ 6 #define REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 namespace remoting { 21 namespace remoting {
22 namespace protocol { 22 namespace protocol {
23 23
24 class ChannelAuthenticator; 24 class ChannelAuthenticator;
25 25
26 class JingleChannelConnector : public base::NonThreadSafe { 26 class JingleChannelConnector : public base::NonThreadSafe {
27 public: 27 public:
28 JingleChannelConnector() { } 28 JingleChannelConnector() { }
29 virtual ~JingleChannelConnector() { } 29 virtual ~JingleChannelConnector() { }
30 30
31 // Starts the connection process for the channel. Takes ownership of 31 // Starts the connection process for the channel.
32 // |authenticator|. 32 virtual void Connect(scoped_ptr<ChannelAuthenticator> authenticator,
33 virtual void Connect(ChannelAuthenticator* authenticator,
34 cricket::TransportChannel* raw_channel) = 0; 33 cricket::TransportChannel* raw_channel) = 0;
35 34
36 protected: 35 protected:
37 DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector); 36 DISALLOW_COPY_AND_ASSIGN(JingleChannelConnector);
38 }; 37 };
39 38
40 } // namespace protocol 39 } // namespace protocol
41 } // namespace remoting 40 } // namespace remoting
42 41
43 #endif // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_ 42 #endif // REMOTING_PROTOCOL_JINGLE_CHANNEL_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698