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

Issue 52233002: [PPAPI] Added VarResource_Dev class. (Closed)

Created:
7 years, 1 month ago by Matt Giuca
Modified:
7 years, 1 month ago
CC:
chromium-reviews, binji, Sam Clegg, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[PPAPI] Added pp::VarResource_Dev class. This is a C++ wrapper for the C API PPB_VarResource_Dev. Also added methods to pp::FileSystem for converting a pp::Resource to a pp::FileSystem, which are necessary for making use of a resource extracted using pp::VarResource_Dev. (Committed by yzshen@chromium.org on behalf of mgiuca@chromium.org) BUG=177017 R=dmichael@chromium.org, noelallen@chromium.org, noelallen@google.com, yzshen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232482

Patch Set 1 #

Total comments: 14

Patch Set 2 : Respond to reviews, and add FileSystem methods. #

Total comments: 2

Patch Set 3 : FileSystem constructor sets resource to null if not a file system on Release build. #

Total comments: 4

Patch Set 4 : Yuzhu nits. #

Patch Set 5 : Fix Windows compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -27 lines) Patch
M native_client_sdk/src/libraries/ppapi_cpp/library.dsc View 2 chunks +2 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/var_resource_dev.h View 1 1 chunk +53 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/var_resource_dev.cc View 1 1 chunk +70 lines, -0 lines 0 comments Download
M ppapi/cpp/file_system.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M ppapi/cpp/file_system.cc View 1 2 3 4 3 chunks +18 lines, -0 lines 0 comments Download
M ppapi/cpp/resource.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ppapi/cpp/resource.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/cpp/var.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/tests/test_file_system.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_file_system.cc View 1 2 3 3 chunks +21 lines, -0 lines 0 comments Download
M ppapi/tests/test_post_message.h View 1 2 chunks +0 lines, -9 lines 0 comments Download
M ppapi/tests/test_post_message.cc View 1 2 3 4 chunks +7 lines, -18 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Matt Giuca
Hi guys, This CL is not quite ready yet. But as I want to get ...
7 years, 1 month ago (2013-10-30 11:35:27 UTC) #1
yzshen1
> I just realised that I forgot to check our original design document before > ...
7 years, 1 month ago (2013-10-30 16:50:01 UTC) #2
dmichael (off chromium)
https://codereview.chromium.org/52233002/diff/1/ppapi/cpp/dev/var_resource_dev.cc File ppapi/cpp/dev/var_resource_dev.cc (right): https://codereview.chromium.org/52233002/diff/1/ppapi/cpp/dev/var_resource_dev.cc#newcode29 ppapi/cpp/dev/var_resource_dev.cc:29: resource.pp_resource()); This should be fine, but you also have ...
7 years, 1 month ago (2013-10-30 18:03:09 UTC) #3
yzshen1
https://codereview.chromium.org/52233002/diff/1/ppapi/cpp/dev/var_resource_dev.cc File ppapi/cpp/dev/var_resource_dev.cc (right): https://codereview.chromium.org/52233002/diff/1/ppapi/cpp/dev/var_resource_dev.cc#newcode29 ppapi/cpp/dev/var_resource_dev.cc:29: resource.pp_resource()); On 2013/10/30 18:03:10, dmichael wrote: > This should ...
7 years, 1 month ago (2013-10-30 18:10:34 UTC) #4
dmichael (off chromium)
On Wed, Oct 30, 2013 at 12:10 PM, <yzshen@chromium.org> wrote: > > https://codereview.chromium.**org/52233002/diff/1/ppapi/cpp/** > dev/var_resource_dev.cc<https://codereview.chromium.org/52233002/diff/1/ppapi/cpp/dev/var_resource_dev.cc> ...
7 years, 1 month ago (2013-10-30 18:13:27 UTC) #5
yzshen1
> Oh, right, thanks. I guess you can ignore those comments. It's confusing, > because ...
7 years, 1 month ago (2013-10-30 18:19:42 UTC) #6
Matt Giuca
Hi, thanks very much for your initial comments. I will take them into account. But ...
7 years, 1 month ago (2013-10-30 21:54:41 UTC) #7
dmichael (off chromium)
On Wed, Oct 30, 2013 at 3:54 PM, <mgiuca@chromium.org> wrote: > Hi, thanks very much ...
7 years, 1 month ago (2013-10-30 22:03:11 UTC) #8
Matt Giuca
> Yes, IMHO. This is consistent with what we've done for other new Var types, ...
7 years, 1 month ago (2013-10-30 23:54:14 UTC) #9
yzshen1
On Wed, Oct 30, 2013 at 2:54 PM, <mgiuca@chromium.org> wrote: > Hi, thanks very much ...
7 years, 1 month ago (2013-10-31 00:48:31 UTC) #10
Matt Giuca
I have responded to all the comments. Also I decided to add the FileSystem methods ...
7 years, 1 month ago (2013-10-31 06:33:46 UTC) #11
Matt Giuca
On 2013/10/31 00:48:31, yzshen1 wrote: > IMO, it also makes some sense to add conversion ...
7 years, 1 month ago (2013-10-31 06:42:11 UTC) #12
dmichael (off chromium)
lgtm I agree, Var_Dev would look the same as VarResource_Dev in practice, so might as ...
7 years, 1 month ago (2013-10-31 16:48:55 UTC) #13
noelallen_use_chromium
The change to the .dsc LGTM However, is this really needed? Can't we just add ...
7 years, 1 month ago (2013-10-31 21:49:01 UTC) #14
Matt Giuca
On 2013/10/31 21:49:01, noelallen wrote: > However, is this really needed? Can't we just add ...
7 years, 1 month ago (2013-10-31 22:10:40 UTC) #15
Matt Giuca
https://codereview.chromium.org/52233002/diff/160001/ppapi/cpp/file_system.cc File ppapi/cpp/file_system.cc (right): https://codereview.chromium.org/52233002/diff/160001/ppapi/cpp/file_system.cc#newcode32 ppapi/cpp/file_system.cc:32: PP_DCHECK(ResourceIsFileSystem(resource)); On 2013/10/31 16:48:56, dmichael wrote: > Let's make ...
7 years, 1 month ago (2013-10-31 23:24:43 UTC) #16
yzshen1
LGTM with two nits. https://codereview.chromium.org/52233002/diff/60002/ppapi/cpp/file_system.h File ppapi/cpp/file_system.h (right): https://codereview.chromium.org/52233002/diff/60002/ppapi/cpp/file_system.h#newcode39 ppapi/cpp/file_system.h:39: explicit FileSystem(Resource resource); const & ...
7 years, 1 month ago (2013-11-01 00:14:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/52233002/450001
7 years, 1 month ago (2013-11-01 01:44:50 UTC) #18
Matt Giuca
https://codereview.chromium.org/52233002/diff/60002/ppapi/cpp/file_system.h File ppapi/cpp/file_system.h (right): https://codereview.chromium.org/52233002/diff/60002/ppapi/cpp/file_system.h#newcode39 ppapi/cpp/file_system.h:39: explicit FileSystem(Resource resource); On 2013/11/01 00:14:41, yzshen1 wrote: > ...
7 years, 1 month ago (2013-11-01 02:06:22 UTC) #19
Matt Giuca
TBR=noelallen@chromium.org (He used his google.com email to LGTM this which doesn't give OWNERS.)
7 years, 1 month ago (2013-11-01 02:44:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/52233002/450001
7 years, 1 month ago (2013-11-01 02:51:44 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=33866
7 years, 1 month ago (2013-11-01 03:14:48 UTC) #22
noelallen1
lgtm
7 years, 1 month ago (2013-11-01 16:26:02 UTC) #23
yzshen1
7 years, 1 month ago (2013-11-01 22:17:25 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 manually as r232482.

Powered by Google App Engine
This is Rietveld 408576698