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

Unified Diff: remoting/protocol/session_manager.h

Issue 9005034: Refactor SignalStrategy so that it can be reused for multiple connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years 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_manager.h
diff --git a/remoting/protocol/session_manager.h b/remoting/protocol/session_manager.h
index ad484fa606b48c423a1fba8bb67fd8535b5edad7..53901bd953fc374c85dc614c0b73f9ccee3f8d16 100644
--- a/remoting/protocol/session_manager.h
+++ b/remoting/protocol/session_manager.h
@@ -89,11 +89,10 @@ class SessionManager : public base::NonThreadSafe {
Listener() { }
~Listener() { }
- // Called when the session manager has finished
- // initialization. May be called from Init() or after Init()
- // returns. Outgoing connections can be created after this method
- // is called.
- virtual void OnSessionManagerInitialized() = 0;
+ // Called when the session manager is ready. May be called from
Wez 2011/12/21 23:35:30 nit: ready for what? Perhaps just merge this sente
Sergey Ulanov 2011/12/22 21:45:10 Done
+ // Init() or after Init() returns. Outgoing connections can be
+ // created after this method is called.
+ virtual void OnSessionManagerReady() = 0;
// Called when a new session is received. If the host decides to
// accept the session it should set the |response| to
@@ -117,8 +116,7 @@ class SessionManager : public base::NonThreadSafe {
// will also take ownership of these objects. On the client side
// pass in NULL for |private_key| and empty string for
// |certificate|.
- virtual void Init(const std::string& local_jid,
- SignalStrategy* signal_strategy,
+ virtual void Init(SignalStrategy* signal_strategy,
Listener* listener,
bool allow_nat_traversal) = 0;
« remoting/protocol/pepper_session_manager.cc ('K') | « remoting/protocol/pepper_session_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698