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

Unified Diff: remoting/protocol/pepper_channel.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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/pepper_channel.h
diff --git a/remoting/protocol/pepper_channel.h b/remoting/protocol/pepper_channel.h
index de6b93b68ce30490cc5bfec1618f1d904e204bd7..c6737576648ead6f2285fa68de0a3ed92c2ef6e6 100644
--- a/remoting/protocol/pepper_channel.h
+++ b/remoting/protocol/pepper_channel.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
namespace pp {
@@ -31,11 +32,10 @@ class PepperChannel : public base::NonThreadSafe {
virtual ~PepperChannel() { }
// Connect the channel using specified |config|. The specified
- // |authenticator| is used to authenticate the channel. Takes
- // ownership of |authenticator|.
+ // |authenticator| is used to authenticate the channel.
virtual void Connect(pp::Instance* pp_instance,
const TransportConfig& config,
- ChannelAuthenticator* authenticator) = 0;
+ scoped_ptr<ChannelAuthenticator> authenticator) = 0;
// Adds |candidate| received from the peer.
virtual void AddRemoveCandidate(const cricket::Candidate& candidate) = 0;

Powered by Google App Engine
This is Rietveld 408576698