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

Issue 6801008: Websocket to TCP proxy running in a separate thread (only on ChromeOS). (Closed)

Created:
9 years, 8 months ago by Denis Lagno
Modified:
9 years, 6 months ago
CC:
chromium-reviews, jam, cbentzel+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Dmitry Polukhin, ukai, tyoshino (SeeGerritForStatus), Sergey Ulanov, Nikita (slow)
Visibility:
Public.

Description

Websocket to TCP proxy running in a separate thread (only on ChromeOS). With this webproxy: authorized extensions can connect to ws://127.0.0.1:10101/tcpproxy, pass authorization_token:hostname:port: in first frame, then webproxy establishes TCP connection to hostname:port and forwards any subsequent communication. Subsequent communication between extension and webproxy is base64-encoded. TODO(dilmah): remove this temporary solution, get rid of separate thread and listening socket, instead provide the same functionality via hooks into websocket layer. BUG=chromium-os:9667 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84795

Patch Set 1 : f #

Patch Set 2 : g #

Total comments: 11

Patch Set 3 : m #

Patch Set 4 : rename (do not use same name for different things) #

Patch Set 5 : d #

Patch Set 6 : rebase #

Patch Set 7 : sync with ToT + fix for temporarily disabled code #

Patch Set 8 : sync with ToT #

Patch Set 9 : rebase+minor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1571 lines, -1 line) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +36 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/web_socket_proxy.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/web_socket_proxy.cc View 1 2 3 4 5 6 7 8 1 chunk +1290 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/web_socket_proxy_controller.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/web_socket_proxy_controller.cc View 1 2 3 4 1 chunk +110 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/browser_thread.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/browser_thread.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/notification_type.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/libevent/chromium.patch View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/libevent/evdns.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Denis Lagno
please take a look. This is continuation of http://codereview.chromium.org/5484001/
9 years, 8 months ago (2011-04-06 14:41:32 UTC) #1
zel
first, please move code from chrome/browser/net to chrome/browser/chromeos/net On Wed, Apr 6, 2011 at 7:41 ...
9 years, 8 months ago (2011-04-06 14:47:37 UTC) #2
Denis Lagno
On 2011/04/06 14:47:37, zel wrote: > first, please move code from chrome/browser/net to > chrome/browser/chromeos/net ...
9 years, 8 months ago (2011-04-06 15:24:53 UTC) #3
zel
http://codereview.chromium.org/6801008/diff/1019/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6801008/diff/1019/chrome/browser/browser_main.cc#newcode1478 chrome/browser/browser_main.cc:1478: // We delay launching websocket to TCP proxy because ...
9 years, 8 months ago (2011-04-07 16:54:11 UTC) #4
Avi (use Gerrit)
content/ change LGTM
9 years, 8 months ago (2011-04-07 17:01:05 UTC) #5
Denis Lagno
http://codereview.chromium.org/6801008/diff/1019/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6801008/diff/1019/chrome/browser/browser_main.cc#newcode1478 chrome/browser/browser_main.cc:1478: // We delay launching websocket to TCP proxy because ...
9 years, 8 months ago (2011-04-07 17:48:22 UTC) #6
Denis Lagno
http://codereview.chromium.org/6801008/diff/1019/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6801008/diff/1019/chrome/browser/browser_main.cc#newcode1478 chrome/browser/browser_main.cc:1478: // We delay launching websocket to TCP proxy because ...
9 years, 8 months ago (2011-04-11 23:21:26 UTC) #7
Denis Lagno
how about proceeding with this CL?
9 years, 7 months ago (2011-05-06 11:00:07 UTC) #8
Denis Lagno
existing comments are satisfied. Waiting either LGTM or additional comments.
9 years, 7 months ago (2011-05-10 11:17:40 UTC) #9
zel
On 2011/05/10 11:17:40, Denis Lagno wrote: > existing comments are satisfied. Waiting either LGTM or ...
9 years, 7 months ago (2011-05-10 16:23:32 UTC) #10
Evan Martin
On 2011/05/10 16:23:32, zel wrote: > On 2011/05/10 11:17:40, Denis Lagno wrote: > > existing ...
9 years, 6 months ago (2011-06-23 23:19:09 UTC) #11
Evan Martin
9 years, 6 months ago (2011-06-23 23:20:39 UTC) #12
On 2011/06/23 23:19:09, Evan Martin wrote:
> On 2011/05/10 16:23:32, zel wrote:
> > On 2011/05/10 11:17:40, Denis Lagno wrote:
> > > existing comments are satisfied.  Waiting either LGTM or additional
> comments.
> > 
> > LGTM
> 
> By the way, can you run new code by someone with readability before checking
it
> in?  A reviewer should prevent you from checking in code that has no comments
on
> the class.

(BTW, the code stylistically looks perfect to me -- it's just kinda hard to
figure out what it does. 
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Comments )

Powered by Google App Engine
This is Rietveld 408576698