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

Unified Diff: remoting/protocol/transport_context.h

Issue 1681393006: Use UrlRequest in PortAllocator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « remoting/protocol/port_allocator_factory.h ('k') | remoting/protocol/transport_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/transport_context.h
diff --git a/remoting/protocol/transport_context.h b/remoting/protocol/transport_context.h
index fbe0b37f140c490878ee91e406d5f5eb253b8667..46b9f360a70e8137eebc28a324d791fd13fe1d40 100644
--- a/remoting/protocol/transport_context.h
+++ b/remoting/protocol/transport_context.h
@@ -16,13 +16,11 @@
#include "remoting/protocol/transport.h"
#include "remoting/signaling/jingle_info_request.h"
-namespace cricket {
-class PortAllocator;
-} // namespace cricket
namespace remoting {
class SignalStrategy;
+class UrlRequestFactory;
namespace protocol {
@@ -41,6 +39,7 @@ class TransportContext : public base::RefCountedThreadSafe<TransportContext> {
TransportContext(SignalStrategy* signal_strategy,
scoped_ptr<PortAllocatorFactory> port_allocator_factory,
+ scoped_ptr<UrlRequestFactory> url_request_factory,
const NetworkSettings& network_settings,
TransportRole role);
@@ -55,6 +54,9 @@ class TransportContext : public base::RefCountedThreadSafe<TransportContext> {
PortAllocatorFactory* port_allocator_factory() {
return port_allocator_factory_.get();
}
+ UrlRequestFactory* url_request_factory() {
+ return url_request_factory_.get();
+ }
const NetworkSettings& network_settings() const { return network_settings_; }
TransportRole role() const { return role_; }
@@ -70,6 +72,7 @@ class TransportContext : public base::RefCountedThreadSafe<TransportContext> {
SignalStrategy* signal_strategy_;
scoped_ptr<PortAllocatorFactory> port_allocator_factory_;
+ scoped_ptr<UrlRequestFactory> url_request_factory_;
NetworkSettings network_settings_;
TransportRole role_;
« no previous file with comments | « remoting/protocol/port_allocator_factory.h ('k') | remoting/protocol/transport_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698