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

Issue 2726223004: Introduce networking.cast API (Closed)

Created:
3 years, 9 months ago by tbarzic
Modified:
3 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce networking.cast API The new API will be private to cast extension, and will contain networkingPrivate methods only used/needed by cast extension and setup app. Method implementations are not changed, they are just copied from networkingPrivate API to networking.cast API. The goal is to eventually remove networkingPrivate implementation - when extensions white-listed for the API move to the networking.cast API. List of methods that are being moved to networking.cast API: verifyDestination verifyDestinationAndEncryptCredentials verifyDestinationAndEncryptData setWifiTDLSEnabledState getWifiTDLSStatus For now, the ChromeNetworkingCast just calls into the networking private API's crypto verification delegate - the next step will be to move this logic into ChromeNetworkingCastDelegate. BUG=678737 Review-Url: https://codereview.chromium.org/2726223004 Cr-Commit-Position: refs/heads/master@{#457489} Committed: https://chromium.googlesource.com/chromium/src/+/d2ff1ae2c1175126133ec36bc400b3aaed08092b

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : Introduce networking.cast API #

Patch Set 12 : . #

Patch Set 13 : . #

Total comments: 21

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Total comments: 2

Patch Set 18 : rename to networking.castPrivate #

Total comments: 3

Patch Set 19 : histograms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+981 lines, -7 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/chrome_extensions_api_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/chrome_extensions_api_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/networking_cast_private/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/networking_cast_private/networking_cast_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +131 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/networking_cast_private/networking_cast_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +239 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/networking_cast_private/networking_cast_private_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/networking_cast_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +109 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/networking_cast_private/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/networking_cast_private/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +73 lines, -0 lines 0 comments Download
M extensions/browser/api/extensions_api_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/browser/api/extensions_api_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A extensions/browser/api/networking_private/networking_cast_private_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +59 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -7 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/common/api/networking_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +5 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 88 (58 generated)
tbarzic
When you get time, please take a look.
3 years, 9 months ago (2017-03-06 19:33:46 UTC) #40
stevenjb
Are you sure this won't break existing cast extensions? Even if it won't, could we ...
3 years, 9 months ago (2017-03-07 23:28:04 UTC) #41
tbarzic
I reduced the scope of this cl to only add the new API, networking private ...
3 years, 9 months ago (2017-03-08 01:33:16 UTC) #43
stevenjb
This was much simpler to review, thank you for separating it out. This LGTM, but ...
3 years, 9 months ago (2017-03-08 17:44:35 UTC) #44
tbarzic
On 2017/03/08 17:44:35, stevenjb wrote: > This was much simpler to review, thank you for ...
3 years, 9 months ago (2017-03-08 18:34:50 UTC) #45
Devlin
Sorry for the delay on this; I'll see if I can't get to this over ...
3 years, 9 months ago (2017-03-11 03:07:53 UTC) #46
Devlin
Do we have a hard timeline for when items should move over? If so, can ...
3 years, 9 months ago (2017-03-13 05:21:50 UTC) #47
stevenjb
https://codereview.chromium.org/2726223004/diff/240001/chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc File chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc (right): https://codereview.chromium.org/2726223004/diff/240001/chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc#newcode27 chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc:27: return private_api::VerificationProperties::FromValue(*cast_properties_dict); On 2017/03/13 05:21:49, Devlin wrote: > If ...
3 years, 9 months ago (2017-03-13 17:12:26 UTC) #48
tbarzic
https://codereview.chromium.org/2726223004/diff/240001/chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc File chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc (right): https://codereview.chromium.org/2726223004/diff/240001/chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc#newcode27 chrome/browser/extensions/api/networking_cast/chrome_networking_cast_delegate.cc:27: return private_api::VerificationProperties::FromValue(*cast_properties_dict); On 2017/03/13 17:12:26, stevenjb wrote: > On ...
3 years, 9 months ago (2017-03-13 22:35:01 UTC) #55
stevenjb
https://codereview.chromium.org/2726223004/diff/320001/extensions/browser/api/networking_private/networking_cast_delegate.h File extensions/browser/api/networking_private/networking_cast_delegate.h (right): https://codereview.chromium.org/2726223004/diff/320001/extensions/browser/api/networking_private/networking_cast_delegate.h#newcode33 extensions/browser/api/networking_private/networking_cast_delegate.h:33: const api::networking_private::VerificationProperties& properties, Shouldn't we switch this to use ...
3 years, 9 months ago (2017-03-14 19:24:44 UTC) #63
tbarzic
https://codereview.chromium.org/2726223004/diff/320001/extensions/browser/api/networking_private/networking_cast_delegate.h File extensions/browser/api/networking_private/networking_cast_delegate.h (right): https://codereview.chromium.org/2726223004/diff/320001/extensions/browser/api/networking_private/networking_cast_delegate.h#newcode33 extensions/browser/api/networking_private/networking_cast_delegate.h:33: const api::networking_private::VerificationProperties& properties, On 2017/03/14 19:24:43, stevenjb wrote: > ...
3 years, 9 months ago (2017-03-14 19:56:55 UTC) #64
stevenjb
On 2017/03/14 19:56:55, tbarzic wrote: > https://codereview.chromium.org/2726223004/diff/320001/extensions/browser/api/networking_private/networking_cast_delegate.h > File extensions/browser/api/networking_private/networking_cast_delegate.h > (right): > > https://codereview.chromium.org/2726223004/diff/320001/extensions/browser/api/networking_private/networking_cast_delegate.h#newcode33 ...
3 years, 9 months ago (2017-03-14 20:16:48 UTC) #65
tbarzic
On 2017/03/14 20:16:48, stevenjb wrote: > On 2017/03/14 19:56:55, tbarzic wrote: > > > https://codereview.chromium.org/2726223004/diff/320001/extensions/browser/api/networking_private/networking_cast_delegate.h ...
3 years, 9 months ago (2017-03-14 20:28:21 UTC) #66
stevenjb
sgtm and still lgtm :) On Tue, Mar 14, 2017 at 1:28 PM, <tbarzic@chromium.org> wrote: ...
3 years, 9 months ago (2017-03-14 21:37:06 UTC) #67
Devlin
> https://codereview.chromium.org/2726223004/diff/240001/chrome/common/extensions/permissions/permission_set_unittest.cc#newcode841 > chrome/common/extensions/permissions/permission_set_unittest.cc:841: > skip.insert(APIPermission::kNetworkingCast); > On 2017/03/13 05:21:49, Devlin wrote: > > Is ...
3 years, 9 months ago (2017-03-14 22:19:55 UTC) #68
stevenjb
We made the decision a while back to drop 'Private' from APIs used in kiosk ...
3 years, 9 months ago (2017-03-14 22:28:47 UTC) #69
Devlin
On 2017/03/14 22:28:47, stevenjb wrote: > We made the decision a while back to drop ...
3 years, 9 months ago (2017-03-14 22:31:37 UTC) #70
Devlin
On 2017/03/14 22:31:37, Devlin wrote: > On 2017/03/14 22:28:47, stevenjb wrote: > > We made ...
3 years, 9 months ago (2017-03-14 22:32:42 UTC) #71
tbarzic
On 2017/03/14 22:32:42, Devlin wrote: > On 2017/03/14 22:31:37, Devlin wrote: > > On 2017/03/14 ...
3 years, 9 months ago (2017-03-14 22:43:39 UTC) #72
stevenjb
Ah, I assumed we needed these for kiosk mode, otherwise I might have suggested we ...
3 years, 9 months ago (2017-03-14 23:03:14 UTC) #73
Devlin
On 2017/03/14 23:03:14, stevenjb wrote: > Ah, I assumed we needed these for kiosk mode, ...
3 years, 9 months ago (2017-03-14 23:05:54 UTC) #74
tbarzic
OK, renamed the API to networking.castPrivate
3 years, 9 months ago (2017-03-15 01:05:40 UTC) #75
Devlin
Now that this is moved into //chrome, can we simplify the delegate? At a minimum, ...
3 years, 9 months ago (2017-03-15 02:14:45 UTC) #76
tbarzic
On 2017/03/15 02:14:45, Devlin wrote: > Now that this is moved into //chrome, can we ...
3 years, 9 months ago (2017-03-15 02:43:50 UTC) #77
Devlin
You need to update histograms.xml (and get a metrics reviewer), but otherwise lgtm. Thanks for ...
3 years, 9 months ago (2017-03-16 01:26:21 UTC) #78
tbarzic
+isherman for histograms https://codereview.chromium.org/2726223004/diff/340001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc File chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc (right): https://codereview.chromium.org/2726223004/diff/340001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc#newcode25 chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc:25: new ChromeNetworkingCastPrivateDelegate( On 2017/03/16 01:26:21, Devlin ...
3 years, 9 months ago (2017-03-16 04:02:38 UTC) #80
Ilya Sherman
histograms.xml lgtm
3 years, 9 months ago (2017-03-16 05:21:37 UTC) #81
Devlin
https://codereview.chromium.org/2726223004/diff/340001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc File chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc (right): https://codereview.chromium.org/2726223004/diff/340001/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc#newcode25 chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc:25: new ChromeNetworkingCastPrivateDelegate( On 2017/03/16 04:02:38, tbarzic wrote: > On ...
3 years, 9 months ago (2017-03-16 14:47:06 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2726223004/360001
3 years, 9 months ago (2017-03-16 17:01:21 UTC) #85
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 18:05:34 UTC) #88
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/d2ff1ae2c1175126133ec36bc400...

Powered by Google App Engine
This is Rietveld 408576698