|
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
Total comments: 72
Total comments: 6
Total comments: 6
|
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
|
Total messages: 26 (0 generated)
|