diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-08 23:10:48 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-08 23:10:48 +0000 |
commit | a5dc5e09becb1e76a3578945d5c3c4bb02ecd3c0 (patch) | |
tree | e47ac15c74a986b971f1ae18f9038cfe578e4122 /net/spdy/spdy_websocket_stream.cc | |
parent | 62fea9e01f0cc4a183132a54c6217ded08eb7b37 (diff) | |
download | chromium_src-a5dc5e09becb1e76a3578945d5c3c4bb02ecd3c0.zip chromium_src-a5dc5e09becb1e76a3578945d5c3c4bb02ecd3c0.tar.gz chromium_src-a5dc5e09becb1e76a3578945d5c3c4bb02ecd3c0.tar.bz2 |
[Media Gallery, Linux] Implement asynchronous MtpDeviceDelegateImplLinux.
Previously,
(1) MtpDeviceDelegateImplLinux implemented a synchronous version of MTPDeviceDelegate.
(2) MtpDeviceDelegateImplLinux was operated on multiple threads (blocking pool thread and UI thread).
(3) Because of the synchronous behavior, WaitableEvent was used to block a blocking pool thread.
Now,
(1) MtpDeviceDelegateImplLinux implements an asynchronous version of MTPDeviceDelegate.
(2) MtpDeviceDelegateImplLinux runs on the single thread (IO thread).
(3) MtpDeviceDelegateImplLinux supports weak pointers to cancel the callbacks that may run after the destruction of MtpDeviceDelegateImplLinux.
(4) Because of the asynchronous behavior, MtpDeviceDelegateImplLinux does a call-and-reply to the UI thread to dispatch the requests (such as GetFileInfo, ReadDirectory, CreateSnapshotFile, etc) to MediaTransferProtocolManager.
(5) All the WaitableEvents are removed. Blocking pool threads are no longer used.
BUG=154835
TEST=none
TBR=kinuko@chromium.org
Review URL: https://chromiumcodereview.appspot.com/12212042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_websocket_stream.cc')
0 files changed, 0 insertions, 0 deletions