DescriptionRefactor media permission dispatcher class and create proxy class for non-UI threads.
Refactor media permission dispatcher into
1) a base class which manages pending PermissionService calls and the dispatching of the callback.
2) a sub class which uses the base class to talk to Mojo service.
Both classes are not thread safe, the same as before and can only be used by UI thread.
Also create a new subclass whose purpose is to enable non-UI threads calling into this class through the proxy and receive the callback on its own thread.
This is used by the ongoing CL https://codereview.chromium.org/1349823004/
TBR=xhwang@chromium.org
BUG=520101
Committed: https://crrev.com/f4282b031b403e1358125e0db371bda17cac604a
Cr-Commit-Position: refs/heads/master@{#350689}
Patch Set 1 : #
Total comments: 17
Patch Set 2 : #
Total comments: 3
Patch Set 3 : #Patch Set 4 : #Patch Set 5 : Fix windows build break. #Messages
Total messages: 33 (17 generated)
|