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

Side by Side Diff: remoting/protocol/pepper_session_manager.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PEPPER_SESSION_MANAGER_H_ 5 #ifndef REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_
6 #define REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ 6 #define REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class PepperSessionManager : public SessionManager, 44 class PepperSessionManager : public SessionManager,
45 public SignalStrategy::Listener { 45 public SignalStrategy::Listener {
46 public: 46 public:
47 explicit PepperSessionManager(pp::Instance* pp_instance); 47 explicit PepperSessionManager(pp::Instance* pp_instance);
48 virtual ~PepperSessionManager(); 48 virtual ~PepperSessionManager();
49 49
50 // SessionManager interface. 50 // SessionManager interface.
51 virtual void Init(SignalStrategy* signal_strategy, 51 virtual void Init(SignalStrategy* signal_strategy,
52 SessionManager::Listener* listener, 52 SessionManager::Listener* listener,
53 const NetworkSettings& network_settings) OVERRIDE; 53 const NetworkSettings& network_settings) OVERRIDE;
54 virtual Session* Connect( 54 virtual scoped_ptr<Session> Connect(
55 const std::string& host_jid, 55 const std::string& host_jid,
56 Authenticator* authenticator, 56 scoped_ptr<Authenticator> authenticator,
57 CandidateSessionConfig* config, 57 scoped_ptr<CandidateSessionConfig> config,
58 const Session::StateChangeCallback& state_change_callback) OVERRIDE; 58 const Session::StateChangeCallback& state_change_callback) OVERRIDE;
59 virtual void Close() OVERRIDE; 59 virtual void Close() OVERRIDE;
60 virtual void set_authenticator_factory( 60 virtual void set_authenticator_factory(
61 scoped_ptr<AuthenticatorFactory> authenticator_factory) OVERRIDE; 61 scoped_ptr<AuthenticatorFactory> authenticator_factory) OVERRIDE;
62 62
63 // SignalStrategy::Listener interface. 63 // SignalStrategy::Listener interface.
64 virtual void OnSignalStrategyStateChange( 64 virtual void OnSignalStrategyStateChange(
65 SignalStrategy::State state) OVERRIDE; 65 SignalStrategy::State state) OVERRIDE;
66 virtual bool OnSignalStrategyIncomingStanza( 66 virtual bool OnSignalStrategyIncomingStanza(
67 const buzz::XmlElement* stanza) OVERRIDE; 67 const buzz::XmlElement* stanza) OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 SessionsMap sessions_; 100 SessionsMap sessions_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(PepperSessionManager); 102 DISALLOW_COPY_AND_ASSIGN(PepperSessionManager);
103 }; 103 };
104 104
105 } // namespace protocol 105 } // namespace protocol
106 } // namespace remoting 106 } // namespace remoting
107 107
108 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ 108 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698