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

Issue 6623048: Replace libjingle's HttpPortAllocatorSession with Pepper's http client (Closed)

Created:
9 years, 9 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
Reviewers:
Sergey Ulanov, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Replace libjingle's HttpPortAllocatorSession with Pepper's http client HttpPortAllocatorSession uses libjingle's http client to establish relay connection. This will not work in the sanboxed case since it access OS level of network directly. This patch replaces the http client with URL loader in pepper. This goes through the standard URL fetching system for chrome to get around the sandbox problem. BUG=51198 TEST=Force libjingle to use relay and try it with this code. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77218

Patch Set 1 #

Patch Set 2 : thread switching #

Total comments: 20

Patch Set 3 : done #

Patch Set 4 : mergedf #

Patch Set 5 : changes done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -0 lines) Patch

Messages

Total messages: 7 (0 generated)
Alpha Left Google
9 years, 9 months ago (2011-03-07 04:04:37 UTC) #1
Sergey Ulanov
http://codereview.chromium.org/6623048/diff/3001/remoting/client/plugin/pepper_port_allocator_session.cc File remoting/client/plugin/pepper_port_allocator_session.cc (right): http://codereview.chromium.org/6623048/diff/3001/remoting/client/plugin/pepper_port_allocator_session.cc#newcode31 remoting/client/plugin/pepper_port_allocator_session.cc:31: class SessionFactory : public remoting::PortAllocatorSessionFactory { TODO to move ...
9 years, 9 months ago (2011-03-07 12:58:44 UTC) #2
Alpha Left Google
http://codereview.chromium.org/6623048/diff/3001/remoting/client/plugin/pepper_port_allocator_session.cc File remoting/client/plugin/pepper_port_allocator_session.cc (right): http://codereview.chromium.org/6623048/diff/3001/remoting/client/plugin/pepper_port_allocator_session.cc#newcode31 remoting/client/plugin/pepper_port_allocator_session.cc:31: class SessionFactory : public remoting::PortAllocatorSessionFactory { On 2011/03/07 12:58:45, ...
9 years, 9 months ago (2011-03-07 18:02:29 UTC) #3
Sergey Ulanov
LGTM
9 years, 9 months ago (2011-03-07 21:09:26 UTC) #4
Wez
Sorry, I've only just had a chance to look through this properly. I don't understand ...
9 years, 9 months ago (2011-03-23 16:37:09 UTC) #5
Alpha Left Google
This is more about code dependency and structure. You can pass a boolean into HttpPortAllocator ...
9 years, 9 months ago (2011-03-23 16:45:37 UTC) #6
Wez
9 years, 9 months ago (2011-03-24 13:26:05 UTC) #7
Sorry, I'd missed the fact that remoting::HttpPortAllocator derives from
cricket::HttpPortAllocator, so I wondered why the two implementations had
what seemed a false dependency.

I'd recommend changing the "new" in
remoting::HttpPortAllocator::CreateSession to call the base-class version
rather than creating the HttpPortAllocatorSession itself.


On 23 March 2011 16:45, <hclam@chromium.org> wrote:

> This is more about code dependency and structure.
>
> You can pass a boolean into HttpPortAllocator to tell it to use
> JingleHttpPortAllocator, but that breaks dependency. In terms of code
> structure
> it shouldn't know about which implementation it uses for port allocator
> session.
>
>
>
> http://codereview.chromium.org/6623048/
>

Powered by Google App Engine
This is Rietveld 408576698