Descriptionmedia: Simplify CdmHostFile(s)
Today if any files are missing we close files immediately. This resulted in many complicated logic and requires a special command-line switch for testing.
This CL simplifies the implementation by not treating missing files specially. When a file or a sig file is missing, an invalid file descriptor (e.g. -1 on posix) will be passed to the CDM. The CDM already has logic to deal with this case.
This will also be useful in the future when we explore other ways to verify CDM host files.
BUG=694707
TEST=Updated browser test.
Review-Url: https://codereview.chromium.org/2773283002
Cr-Commit-Position: refs/heads/master@{#461193}
Committed: https://chromium.googlesource.com/chromium/src/+/e23c1b6375d994f06ed745805ba3847e8218cdba
Patch Set 1 #Patch Set 2 : media: Simplify CdmHostFile(s) #Patch Set 3 : media: Simplify CdmHostFile(s) #
Total comments: 4
Patch Set 4 : comments addressed #
Messages
Total messages: 37 (24 generated)
|