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

Issue 148213016: [PPAPI] Moving pp::VarResource_Dev API into pp::Var (now stable). (Closed)

Created:
6 years, 10 months ago by Matt Giuca
Modified:
6 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, raymes+watch_chromium.org, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, Sam Clegg, nfullagar1, piman+watch_chromium.org, noelallen1, binji, ihf+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, dmichael (off chromium)
Visibility:
Public.

Description

[PPAPI] Moving pp::VarResource_Dev API into pp::Var (now stable). This API allows pp::Resource objects to be read and written to pp::Vars. Moved the methods of PPB_VarResource_Dev (C API) to PPB_Var version 1.2. Moved the methods of pp::VarResource_Dev (C++ API) to pp::Var. Code written against the dev API will no longer compile, as references to the API need to be updated to use Var instead of VarResource_Dev. Binaries compiled against the dev API will now experience run-time errors loading the old interface. BUG=177017 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251000

Patch Set 1 #

Total comments: 7

Patch Set 2 : Moved VarResource methods into Var, and deleted VarResource. #

Patch Set 3 : Remove HTML note about dev interfaces. #

Total comments: 18

Patch Set 4 : Respond to reviews. #

Patch Set 5 : Rebase off CL 158563002 (explicitly check all interface versions in var.cc). #

Patch Set 6 : Update histograms.xml. #

Total comments: 14

Patch Set 7 : Rebase from CL 158563002. #

Patch Set 8 : Handle PP_VARTYPE_RESOURCE in two places. #

Patch Set 9 : Fixed PPB_VarTest and WebSocketResourceTest. #

Patch Set 10 : Rebase. #

Patch Set 11 : Fixed compile error in media_stream_audio example. #

Patch Set 12 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -355 lines) Patch
M chrome/browser/component_updater/ppapi_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/plugin_module.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M native_client_sdk/src/libraries/ppapi/library.dsc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/ppapi_cpp/library.dsc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -2 lines 0 comments Download
D ppapi/api/dev/ppb_var_resource_dev.idl View 1 chunk +0 lines, -38 lines 0 comments Download
M ppapi/api/ppb_var.idl View 1 2 chunks +26 lines, -1 line 0 comments Download
D ppapi/c/dev/ppb_var_resource_dev.h View 1 chunk +0 lines, -60 lines 0 comments Download
M ppapi/c/ppb_var.h View 1 5 chunks +33 lines, -4 lines 0 comments Download
D ppapi/cpp/dev/var_resource_dev.h View 1 chunk +0 lines, -53 lines 0 comments Download
D ppapi/cpp/dev/var_resource_dev.cc View 1 chunk +0 lines, -70 lines 0 comments Download
M ppapi/cpp/resource.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/cpp/var.h View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M ppapi/cpp/var.cc View 1 2 3 4 5 6 7 9 chunks +48 lines, -5 lines 0 comments Download
M ppapi/examples/media_stream_audio/media_stream_audio.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/examples/media_stream_video/media_stream_video.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +51 lines, -28 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -3 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_var_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/websocket_resource_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ppapi/shared_impl/ppb_var_shared.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_var_shared.cc View 1 2 3 3 chunks +32 lines, -1 line 0 comments Download
M ppapi/tests/test_post_message.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M ppapi/tests/test_var_resource.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M ppapi/tests/test_var_resource.cc View 1 4 chunks +15 lines, -19 lines 0 comments Download
M ppapi/thunk/interfaces_legacy.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 1 chunk +0 lines, -1 line 0 comments Download
D ppapi/thunk/ppb_var_resource_dev_thunk.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 57 (0 generated)
Matt Giuca
What a huge change just to rename this API! I think I have gotten everything. ...
6 years, 10 months ago (2014-02-04 08:39:41 UTC) #1
Matt Giuca
+dmichael (if you would like to review instead of Yuzhu that is fine).
6 years, 10 months ago (2014-02-04 08:40:30 UTC) #2
Matt Giuca
Please note the breakage this change will cause to existing apps already compiled against the ...
6 years, 10 months ago (2014-02-04 08:42:02 UTC) #3
binji
native_client_sdk lgtm https://codereview.chromium.org/148213016/diff/1/native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc File native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc (right): https://codereview.chromium.org/148213016/diff/1/native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc#newcode135 native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc:135: pp::Resource resource_track = pp::VarResource(var_track).AsResource(); Please remove the ...
6 years, 10 months ago (2014-02-04 17:26:31 UTC) #4
yzshen1
https://codereview.chromium.org/148213016/diff/1/ppapi/api/ppb_var_resource.idl File ppapi/api/ppb_var_resource.idl (right): https://codereview.chromium.org/148213016/diff/1/ppapi/api/ppb_var_resource.idl#newcode16 ppapi/api/ppb_var_resource.idl:16: interface PPB_VarResource { I remember that we had considered ...
6 years, 10 months ago (2014-02-04 17:53:21 UTC) #5
dmichael (off chromium)
https://codereview.chromium.org/148213016/diff/1/ppapi/api/ppb_var_resource.idl File ppapi/api/ppb_var_resource.idl (right): https://codereview.chromium.org/148213016/diff/1/ppapi/api/ppb_var_resource.idl#newcode16 ppapi/api/ppb_var_resource.idl:16: interface PPB_VarResource { On 2014/02/04 17:53:21, yzshen1 wrote: > ...
6 years, 10 months ago (2014-02-04 17:55:47 UTC) #6
noelallen1
Agree with yzshen and dmichael. Adding new interfaces adds cost to the developer. Adding new ...
6 years, 10 months ago (2014-02-05 01:09:52 UTC) #7
Matt Giuca
Oh, now I remember that we decided to do that. Yes, I will move the ...
6 years, 10 months ago (2014-02-05 14:15:35 UTC) #8
Matt Giuca
PTAL https://codereview.chromium.org/148213016/diff/1/native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc File native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc (right): https://codereview.chromium.org/148213016/diff/1/native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc#newcode135 native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc:135: pp::Resource resource_track = pp::VarResource(var_track).AsResource(); On 2014/02/04 17:26:32, binji ...
6 years, 10 months ago (2014-02-06 08:51:14 UTC) #9
dmichael (off chromium)
https://codereview.chromium.org/148213016/diff/170001/native_client_sdk/src/examples/api/media_stream_video/index.html File native_client_sdk/src/examples/api/media_stream_video/index.html (left): https://codereview.chromium.org/148213016/diff/170001/native_client_sdk/src/examples/api/media_stream_video/index.html#oldcode21 native_client_sdk/src/examples/api/media_stream_video/index.html:21: or with PNaCL.<br> Actually, this is still almost true. ...
6 years, 10 months ago (2014-02-06 17:25:00 UTC) #10
yzshen1
Mostly LG, only a few nits. Thanks! https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.cc#newcode136 ppapi/cpp/var.cc:136: if (has_interface<PPB_Var_1_0>()) ...
6 years, 10 months ago (2014-02-06 18:02:57 UTC) #11
dmichael (off chromium)
https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.h File ppapi/cpp/var.h (right): https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.h#newcode55 ppapi/cpp/var.h:55: explicit Var(const pp::Resource& resource); On 2014/02/06 18:02:58, yzshen1 wrote: ...
6 years, 10 months ago (2014-02-06 18:33:13 UTC) #12
yzshen1
https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.h File ppapi/cpp/var.h (right): https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.h#newcode55 ppapi/cpp/var.h:55: explicit Var(const pp::Resource& resource); On 2014/02/06 18:33:14, dmichael wrote: ...
6 years, 10 months ago (2014-02-06 19:58:17 UTC) #13
Matt Giuca
OK, I'm just looking for an executive decision about two issues: - Should Var be ...
6 years, 10 months ago (2014-02-07 03:11:21 UTC) #14
yzshen
On Thu, Feb 6, 2014 at 7:11 PM, <mgiuca@chromium.org> wrote: > OK, I'm just looking ...
6 years, 10 months ago (2014-02-07 04:54:50 UTC) #15
yzshen1
(Resent from the right account.) On Thu, Feb 6, 2014 at 7:11 PM, <mgiuca@chromium.org> wrote: ...
6 years, 10 months ago (2014-02-07 04:56:20 UTC) #16
dmichael (off chromium)
https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.cc#newcode126 ppapi/cpp/var.cc:126: get_interface<PPB_Var_1_0>()->AddRef(var_); On 2014/02/07 03:11:22, Matt Giuca wrote: > :O ...
6 years, 10 months ago (2014-02-07 17:45:27 UTC) #17
yzshen1
https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.h File ppapi/cpp/var.h (right): https://codereview.chromium.org/148213016/diff/170001/ppapi/cpp/var.h#newcode55 ppapi/cpp/var.h:55: explicit Var(const pp::Resource& resource); On 2014/02/07 17:45:28, dmichael wrote: ...
6 years, 10 months ago (2014-02-07 17:49:35 UTC) #18
Matt Giuca
asvitkine: tools/metrics/histograms/histograms.xml
6 years, 10 months ago (2014-02-10 01:52:19 UTC) #19
Matt Giuca
Other reviewers: I have updated Var as you asked (see https://codereview.chromium.org/158563002/, and follow-up in this ...
6 years, 10 months ago (2014-02-10 02:02:52 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/148213016/diff/410001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/148213016/diff/410001/tools/metrics/histograms/histograms.xml#oldcode29573 tools/metrics/histograms/histograms.xml:29573: - <int value="1465557812" label="PPB_VarResource(Dev);0.1"/> Don't remove existing entries from ...
6 years, 10 months ago (2014-02-10 14:28:51 UTC) #21
yzshen1
https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc#newcode67 ppapi/cpp/var.cc:67: } else if (has_interface<PPB_Var_1_1>()) { nit: According to style ...
6 years, 10 months ago (2014-02-10 17:00:53 UTC) #22
dmichael (off chromium)
lgtm, aside from Yuzhu's comments about resource. (And I'd like his feedback about the "else ...
6 years, 10 months ago (2014-02-10 18:31:54 UTC) #23
Alexei Svitkine (slow)
histograms lgtm https://codereview.chromium.org/148213016/diff/410001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/148213016/diff/410001/tools/metrics/histograms/histograms.xml#oldcode29573 tools/metrics/histograms/histograms.xml:29573: - <int value="1465557812" label="PPB_VarResource(Dev);0.1"/> On 2014/02/10 18:31:56, ...
6 years, 10 months ago (2014-02-10 18:36:30 UTC) #24
yzshen1
Thanks David. Please see inline comments. https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc#newcode67 ppapi/cpp/var.cc:67: } else if ...
6 years, 10 months ago (2014-02-10 19:44:12 UTC) #25
dmichael (off chromium)
https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc#newcode67 ppapi/cpp/var.cc:67: } else if (has_interface<PPB_Var_1_1>()) { On 2014/02/10 19:44:14, yzshen1 ...
6 years, 10 months ago (2014-02-10 20:12:49 UTC) #26
yzshen1
https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc#newcode67 ppapi/cpp/var.cc:67: } else if (has_interface<PPB_Var_1_1>()) { I agree that it ...
6 years, 10 months ago (2014-02-10 22:38:40 UTC) #27
Matt Giuca
Thanks for the reviews. Before I go into these in too much detail, please look ...
6 years, 10 months ago (2014-02-10 22:47:51 UTC) #28
dmichael (off chromium)
lgtm-ed that one, too, with the following nit: I think the "else if"s are fine. ...
6 years, 10 months ago (2014-02-10 22:59:40 UTC) #29
Matt Giuca
https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): https://codereview.chromium.org/148213016/diff/410001/ppapi/cpp/var.cc#newcode67 ppapi/cpp/var.cc:67: } else if (has_interface<PPB_Var_1_1>()) { I've changed the else ...
6 years, 10 months ago (2014-02-11 02:41:16 UTC) #30
yzshen1
LGTM, Thanks!
6 years, 10 months ago (2014-02-11 04:50:19 UTC) #31
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-11 05:01:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/148213016/780001
6 years, 10 months ago (2014-02-11 05:03:05 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-11 05:33:50 UTC) #34
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=227455
6 years, 10 months ago (2014-02-11 05:33:51 UTC) #35
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-11 07:58:58 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/148213016/1120001
6 years, 10 months ago (2014-02-11 07:59:06 UTC) #37
Matt Giuca
The CQ bit was unchecked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-11 08:00:35 UTC) #38
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-11 08:01:02 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/148213016/1220001
6 years, 10 months ago (2014-02-11 08:01:11 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-11 08:49:02 UTC) #41
commit-bot: I haz the power
Retried try job too often on mac for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=123471
6 years, 10 months ago (2014-02-11 08:49:03 UTC) #42
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-12 01:25:59 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/148213016/840002
6 years, 10 months ago (2014-02-12 01:27:00 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 01:59:53 UTC) #45
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=261966
6 years, 10 months ago (2014-02-12 01:59:54 UTC) #46
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-12 03:33:53 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/148213016/840002
6 years, 10 months ago (2014-02-12 03:54:02 UTC) #48
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 08:48:09 UTC) #49
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=262334
6 years, 10 months ago (2014-02-12 08:48:10 UTC) #50
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-13 00:27:06 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/148213016/2210001
6 years, 10 months ago (2014-02-13 00:30:04 UTC) #52
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 02:21:37 UTC) #53
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, ...
6 years, 10 months ago (2014-02-13 02:21:39 UTC) #54
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-13 05:04:26 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/148213016/2210001
6 years, 10 months ago (2014-02-13 05:05:39 UTC) #56
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 14:50:04 UTC) #57
Message was sent while issue was closed.
Change committed as 251000

Powered by Google App Engine
This is Rietveld 408576698