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

Unified Diff: remoting/host/jingle_session_manager_factory.h

Issue 10538091: [Chromoting] Make ChromotingHost's dependency on libjingle injected, instead of hard-coded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/host/jingle_session_manager_factory.h
diff --git a/remoting/host/jingle_session_manager_factory.h b/remoting/host/jingle_session_manager_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c453ece7d9c2ef33b0c80e2eeefeb7237d7057f
--- /dev/null
+++ b/remoting/host/jingle_session_manager_factory.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_JINGLE_SESSION_MANAGER_FACTORY_H_
+#define REMOTING_HOST_JINGLE_SESSION_MANAGER_FACTORY_H_
+
+#include "remoting/host/session_manager_factory.h"
+
+namespace remoting {
+
+struct NetworkSettings;
+
+class JingleSessionManagerFactory : public SessionManagerFactory {
Wez 2012/06/11 22:17:06 Add a brief comment explaining what this factory m
simonmorris 2012/06/11 23:08:59 Done.
+ public:
+ JingleSessionManagerFactory();
+ virtual ~JingleSessionManagerFactory() OVERRIDE;
Wez 2012/06/11 22:17:06 You don't need OVERRIDE on dtors.
simonmorris 2012/06/11 23:08:59 Done.
+
+ virtual scoped_ptr<protocol::SessionManager> MakeSessionManager(
Wez 2012/06/11 22:17:06 nit: CreateSessionManager is more in keeping with
simonmorris 2012/06/11 23:08:59 Done.
+ const NetworkSettings& network_settings,
+ const scoped_refptr<net::URLRequestContextGetter>&
+ url_request_context_getter) OVERRIDE;
Wez 2012/06/11 22:17:06 You're missing the disallow-copy-and-assign macro
simonmorris 2012/06/11 23:08:59 Done.
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_JINGLE_SESSION_MANAGER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698