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

Unified Diff: remoting/protocol/port_allocator_factory.h

Issue 1571943002: Simplify PortAllocatorBase and make PortAllocator creation synchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/port_allocator_factory.h
diff --git a/remoting/protocol/port_allocator_factory.h b/remoting/protocol/port_allocator_factory.h
index f563cb590cd3a35c2977ecc08d1663d0b71bfc78..907b6b519e83bfe17f1b9fff59ab635288808ffd 100644
--- a/remoting/protocol/port_allocator_factory.h
+++ b/remoting/protocol/port_allocator_factory.h
@@ -7,10 +7,14 @@
#include "base/memory/scoped_ptr.h"
+namespace cricket {
+class PortAllocator;
+} // namespace cricket
+
namespace remoting {
namespace protocol {
-class PortAllocatorBase;
+class TransportContext;
// Factory class used for creating cricket::PortAllocator that is used
// to allocate ICE candidates.
@@ -18,7 +22,8 @@ class PortAllocatorFactory {
public:
virtual ~PortAllocatorFactory() {}
- virtual scoped_ptr<PortAllocatorBase> CreatePortAllocator() = 0;
+ virtual scoped_ptr<cricket::PortAllocator> CreatePortAllocator(
+ scoped_refptr<TransportContext> transport_context) = 0;
};
} // namespace protocol

Powered by Google App Engine
This is Rietveld 408576698