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

Issue 438513002: Add the whispernet proxy. (Closed)

Created:
6 years, 4 months ago by rkc
Modified:
5 years, 7 months ago
CC:
arv+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Add the whispernet proxy. To communicate with whispernet (which needs to be checked in as a pNacl binary), the only way possible is for us to go through an extension. This code implements the ChromeWhispernetClient, which uses the whispernet proxy compoent extension. This extension is implemented on top of a private API that allows it to communicate back and forth with the ChromeWhispernetClient. The tests for this code exist only for the ChromeWhispernetClient since they excersize the full flow back and forth from sending a request to encode a token to receiving the samples, and then decoding samples and receiving the correct token. This is our temporary measure for M38 till we can find a better way to communicate with the whispernet library. Owners reviews requested: xiyuan@ - For the overall review + the whispernet proxy code in c/b/r/whispernet_proxy jochen@ - For adding components/copresence to c/b/DEPS kalman@ - For the copresence_private API ben@ - For adding the c/b/copresence directory and the OWNERS file + the addition to c/b/browser_resources.grd R=ben@chromium.org, jochen@chromium.org, kalman@chromium.org, xiyuan@chromium.org BUG=365493 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287976

Patch Set 1 #

Total comments: 72

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : removing binary assets #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1182 lines, -2 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/browser/copresence/OWNERS View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A chrome/browser/copresence/chrome_whispernet_client.h View 1 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/copresence/chrome_whispernet_client.cc View 1 1 chunk +200 lines, -0 lines 0 comments Download
A chrome/browser/copresence/chrome_whispernet_client_browsertest.cc View 1 1 chunk +179 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/copresence_private/copresence_private_api.h View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/copresence_private/copresence_private_api.cc View 1 2 3 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/browser/resources/component_extension_resources.grd View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A + chrome/browser/resources/whispernet_proxy/OWNERS View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A chrome/browser/resources/whispernet_proxy/background.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/browser/resources/whispernet_proxy/js/init.js View 1 2 3 4 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/browser/resources/whispernet_proxy/js/nacl.js View 1 1 chunk +102 lines, -0 lines 0 comments Download
A chrome/browser/resources/whispernet_proxy/js/wrapper.js View 1 2 3 1 chunk +224 lines, -0 lines 0 comments Download
A chrome/browser/resources/whispernet_proxy/manifest.json View 1 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/copresence_private.idl View 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
rkc
6 years, 4 months ago (2014-07-31 06:05:27 UTC) #1
jochen (gone - plz use gerrit)
DEPS change lgtm
6 years, 4 months ago (2014-07-31 14:12:49 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/438513002/diff/1/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc File chrome/browser/extensions/api/copresence_private/copresence_private_api.cc (right): https://codereview.chromium.org/438513002/diff/1/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc#newcode19 chrome/browser/extensions/api/copresence_private/copresence_private_api.cc:19: namespace util { I don't think the namespace is ...
6 years, 4 months ago (2014-07-31 15:24:18 UTC) #3
rkc
Just so everyone understands where this code is going, this code will eventually look like, ...
6 years, 4 months ago (2014-07-31 15:47:32 UTC) #4
xiyuan
https://codereview.chromium.org/438513002/diff/1/chrome/browser/copresence/chrome_whispernet_client.cc File chrome/browser/copresence/chrome_whispernet_client.cc (right): https://codereview.chromium.org/438513002/diff/1/chrome/browser/copresence/chrome_whispernet_client.cc#newcode9 chrome/browser/copresence/chrome_whispernet_client.cc:9: #include "base/stl_util.h" Is this used? https://codereview.chromium.org/438513002/diff/1/chrome/browser/copresence/chrome_whispernet_client.cc#newcode19 chrome/browser/copresence/chrome_whispernet_client.cc:19: namespace copresence ...
6 years, 4 months ago (2014-07-31 19:22:23 UTC) #5
rkc
https://codereview.chromium.org/438513002/diff/1/chrome/browser/copresence/chrome_whispernet_client.cc File chrome/browser/copresence/chrome_whispernet_client.cc (right): https://codereview.chromium.org/438513002/diff/1/chrome/browser/copresence/chrome_whispernet_client.cc#newcode9 chrome/browser/copresence/chrome_whispernet_client.cc:9: #include "base/stl_util.h" On 2014/07/31 19:22:22, xiyuan wrote: > Is ...
6 years, 4 months ago (2014-07-31 23:12:54 UTC) #6
not at google - send to devlin
thanks - almost done. the ref counting thing isn't really in code that I own ...
6 years, 4 months ago (2014-07-31 23:31:18 UTC) #7
rkc
https://codereview.chromium.org/438513002/diff/1/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc File chrome/browser/extensions/api/copresence_private/copresence_private_api.cc (right): https://codereview.chromium.org/438513002/diff/1/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc#newcode36 chrome/browser/extensions/api/copresence_private/copresence_private_api.cc:36: if (!util::GetWhispernetClient(browser_context()) || On 2014/07/31 23:31:17, kalman wrote: > ...
6 years, 4 months ago (2014-08-01 19:20:00 UTC) #8
Alexei Svitkine (slow)
histograms lgtm % comment that should be addressed https://codereview.chromium.org/438513002/diff/40001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/438513002/diff/40001/extensions/browser/extension_function_histogram_value.h#newcode915 extensions/browser/extension_function_histogram_value.h:915: GCDPRIVATE_GETPREFETCHEDWIFINAMELIST, ...
6 years, 4 months ago (2014-08-01 19:22:04 UTC) #9
xiyuan
lgtm https://codereview.chromium.org/438513002/diff/1/chrome/browser/resources/whispernet_proxy/js/wrapper.js File chrome/browser/resources/whispernet_proxy/js/wrapper.js (right): https://codereview.chromium.org/438513002/diff/1/chrome/browser/resources/whispernet_proxy/js/wrapper.js#newcode7 chrome/browser/resources/whispernet_proxy/js/wrapper.js:7: * @param {string} bytes String containing the bytes ...
6 years, 4 months ago (2014-08-01 19:24:27 UTC) #10
not at google - send to devlin
lgtm https://codereview.chromium.org/438513002/diff/40001/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc File chrome/browser/extensions/api/copresence_private/copresence_private_api.cc (right): https://codereview.chromium.org/438513002/diff/40001/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc#newcode24 chrome/browser/extensions/api/copresence_private/copresence_private_api.cc:24: copresence::WhispernetClient* GetWhispernetClient( just inline the content of this ...
6 years, 4 months ago (2014-08-01 21:11:59 UTC) #11
rkc
https://codereview.chromium.org/438513002/diff/1/chrome/browser/resources/whispernet_proxy/js/wrapper.js File chrome/browser/resources/whispernet_proxy/js/wrapper.js (right): https://codereview.chromium.org/438513002/diff/1/chrome/browser/resources/whispernet_proxy/js/wrapper.js#newcode7 chrome/browser/resources/whispernet_proxy/js/wrapper.js:7: * @param {string} bytes String containing the bytes we ...
6 years, 4 months ago (2014-08-01 21:21:13 UTC) #12
rkc
I've moved the binary assets for this CL out to https://codereview.chromium.org/444773002/ Landing that first will ...
6 years, 4 months ago (2014-08-05 19:48:25 UTC) #13
Ben Goodger (Google)
lgtm
6 years, 4 months ago (2014-08-06 19:55:05 UTC) #14
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-06 20:24:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/438513002/140001
6 years, 4 months ago (2014-08-06 20:25:16 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-06 21:23:27 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 21:25:32 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/38204) win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/2304)
6 years, 4 months ago (2014-08-06 21:25:33 UTC) #19
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-07 00:20:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/438513002/160001
6 years, 4 months ago (2014-08-07 00:23:32 UTC) #21
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-07 01:28:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/438513002/180001
6 years, 4 months ago (2014-08-07 01:30:43 UTC) #23
commit-bot: I haz the power
Change committed as 287976
6 years, 4 months ago (2014-08-07 07:06:27 UTC) #24
architv07_gmail.com
Whisper net proxy seems to eat up a lot of memory on chrome. Why is ...
5 years, 7 months ago (2015-05-24 09:07:10 UTC) #25
Charlie
5 years, 7 months ago (2015-05-26 18:26:20 UTC) #26
Message was sent while issue was closed.
On 2015/05/24 09:07:10, architv07_gmail.com wrote:
> Whisper net proxy seems to eat up a lot of memory on chrome. Why is it 
> required?
> 
> On Thursday, August 7, 2014 at 12:36:29 PM UTC+5:30,
mailto:commi...@chromium.org 
> wrote:
> >
> > Change committed as 287976 
> >
> > https://codereview.chromium.org/438513002/ 
> >
> 
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Whispernet is not loaded unless an extension explicitly calls it. There is a
known memory leak, but the whole Whispernet system is slated to be removed from
Chrome. A javascript-only replacement is in the works, which will not ship with
Chrome by default.

Powered by Google App Engine
This is Rietveld 408576698