diff options
author | sergeyu <sergeyu@chromium.org> | 2016-02-11 15:47:01 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-11 23:48:38 +0000 |
commit | c3c43e8732254dedcbd313629f8c9eba93dff6fa (patch) | |
tree | dec7b5fa7233c9063fa651e7dbebe1242b303826 /remoting/protocol/webrtc_transport.cc | |
parent | cb092cd91ca95112508d2b86af2b8199e1b90e77 (diff) | |
download | chromium_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.cc | 1 |
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" |