summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/webrtc_transport.cc
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2016-02-11 15:47:01 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-11 23:48:38 +0000
commitc3c43e8732254dedcbd313629f8c9eba93dff6fa (patch)
treedec7b5fa7233c9063fa651e7dbebe1242b303826 /remoting/protocol/webrtc_transport.cc
parentcb092cd91ca95112508d2b86af2b8199e1b90e77 (diff)
downloadchromium_src-c3c43e8732254dedcbd313629f8c9eba93dff6fa.zip
chromium_src-c3c43e8732254dedcbd313629f8c9eba93dff6fa.tar.gz
chromium_src-c3c43e8732254dedcbd313629f8c9eba93dff6fa.tar.bz2
Use UrlRequest in PortAllocator.
PepperPortAllocator and ChromiumPortAllocator were different only in how they were sending HTTP requests to allocate relay session. They were using pp::URLLoader and net::URLFetcher respectively, but otherwise contained largely the same logic. Now URL request logic is abstracted with remoting::UrlRequest interface and so a single PortAllocator implementation can be used in all cases. BUG=577954 Review URL: https://codereview.chromium.org/1681393006 Cr-Commit-Position: refs/heads/master@{#375042}
Diffstat (limited to 'remoting/protocol/webrtc_transport.cc')
-rw-r--r--remoting/protocol/webrtc_transport.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc
index 105330c..c342a12 100644
--- a/remoting/protocol/webrtc_transport.cc
+++ b/remoting/protocol/webrtc_transport.cc
@@ -13,6 +13,7 @@
#include "base/task_runner_util.h"
#include "base/thread_task_runner_handle.h"
#include "jingle/glue/thread_wrapper.h"
+#include "remoting/protocol/port_allocator_factory.h"
#include "remoting/protocol/stream_message_pipe_adapter.h"
#include "remoting/protocol/transport_context.h"
#include "third_party/webrtc/api/test/fakeconstraints.h"