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

Unified Diff: remoting/protocol/session_config.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/session_config.h
diff --git a/remoting/protocol/session_config.h b/remoting/protocol/session_config.h
index 7ebfba6144fff6f4549958d3a612c4acdf8fd8c2..07dcaa2bd926223165d0441642d9cc76d38ae7f9 100644
--- a/remoting/protocol/session_config.h
+++ b/remoting/protocol/session_config.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
namespace remoting {
namespace protocol {
@@ -119,11 +120,12 @@ class CandidateSessionConfig {
// or undefined (e.g. no configurations for a channel) then NULL is returned.
bool GetFinalConfig(SessionConfig* result) const;
- CandidateSessionConfig* Clone() const;
+ scoped_ptr<CandidateSessionConfig> Clone() const;
- static CandidateSessionConfig* CreateEmpty();
- static CandidateSessionConfig* CreateFrom(const SessionConfig& config);
- static CandidateSessionConfig* CreateDefault();
+ static scoped_ptr<CandidateSessionConfig> CreateEmpty();
+ static scoped_ptr<CandidateSessionConfig> CreateFrom(
+ const SessionConfig& config);
+ static scoped_ptr<CandidateSessionConfig> CreateDefault();
private:
CandidateSessionConfig();

Powered by Google App Engine
This is Rietveld 408576698