DescriptionMake a NaClDesc ctor for creating descs from NaClFileInfo.
Could make ownership transfer more direct without accidentally dropping
the file tokens:
https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode499
Moves NaClFileInfo into src/public/ instead of being under validator,
so that src/trusted/desc doesn't import headers from validator
since src/trusted/validator already imports from src/trusted/desc.
I'm leaving a redirector under the old location to avoid
making the Chrome DEPS roll complicated.
Once it rolls into Chrome and the references are
fixed, we can delete the old copy/redirector.
Put the token validity checks into the ctor, so that the
caller can just say:
NaClDescIoFromFileToken...(info.Release(), RD_ONLY)
instead of checking validity before the call to Release().
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3421
R=mseaborn@chromium.org
Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=13198
Patch Set 1 #Patch Set 2 : keep old copy #Patch Set 3 : use or #
Total comments: 4
Patch Set 4 : make a helper and reuse set method #Patch Set 5 : missing files #Patch Set 6 : sync copies before deleting #
Total comments: 4
Patch Set 7 : include instead of dupe #Patch Set 8 : move most of wrapper construction to a ctor #Patch Set 9 : c vs cxx #Patch Set 10 : win #
Total comments: 10
Patch Set 11 : review #
Total comments: 7
Patch Set 12 : revert more #Patch Set 13 : more cleanup #Patch Set 14 : make it posix file descriptor #Messages
Total messages: 11 (0 generated)
|