diff options
author | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-01 17:10:34 +0000 |
---|---|---|
committer | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-01 17:10:34 +0000 |
commit | 6e9f63759e3b56ebedfd511f7735df949e2d5267 (patch) | |
tree | 5a4a6b784dc2acf6e77e79118b5f9433df491a38 /media/midi/midi_manager.h | |
parent | e943157bb3f7e3cd90c82ed2ecf9ed23b5c34ff1 (diff) | |
download | chromium_src-6e9f63759e3b56ebedfd511f7735df949e2d5267.zip chromium_src-6e9f63759e3b56ebedfd511f7735df949e2d5267.tar.gz chromium_src-6e9f63759e3b56ebedfd511f7735df949e2d5267.tar.bz2 |
Simplify callback and thread management in file_manager::ZipFileCreator.
Changes are:
* Specialized the class for the use from UI thread only, since there're no other clients.
* Eliminated manual AddRef/Release and made it managed by base::Bind.
More specifically, FileBrowserPrivateZipSelectionFunction is now owned by ZipFileCreator
through the callback object, and ZipFileCreator is owned either by callback
objects or UtilityProcessHost via scoped_refptr.
* Misc clean up by using utility function like PostTaskAndReplyWithResult.
BUG=none
TEST=browser_tests --gtest_filter='ZipFileCreatorTest.*'
Review URL: https://codereview.chromium.org/260993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/midi/midi_manager.h')
0 files changed, 0 insertions, 0 deletions