OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/utility/chrome_content_utility_client.h" | 5 #include "chrome/utility/chrome_content_utility_client.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 IPC::PlatformFileForTransitToPlatformFile(zip_file), &results); | 745 IPC::PlatformFileForTransitToPlatformFile(zip_file), &results); |
746 Send(new ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished( | 746 Send(new ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished( |
747 results)); | 747 results)); |
748 ReleaseProcessIfNeeded(); | 748 ReleaseProcessIfNeeded(); |
749 } | 749 } |
750 | 750 |
751 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 751 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
752 void ChromeContentUtilityClient::OnCheckMediaFile( | 752 void ChromeContentUtilityClient::OnCheckMediaFile( |
753 int64 milliseconds_of_decoding, | 753 int64 milliseconds_of_decoding, |
754 const IPC::PlatformFileForTransit& media_file) { | 754 const IPC::PlatformFileForTransit& media_file) { |
755 media::MediaFileChecker | 755 media::MediaFileChecker checker( |
756 checker(IPC::PlatformFileForTransitToPlatformFile(media_file)); | 756 base::File(IPC::PlatformFileForTransitToPlatformFile(media_file))); |
757 const bool check_success = checker.Start( | 757 const bool check_success = checker.Start( |
758 base::TimeDelta::FromMilliseconds(milliseconds_of_decoding)); | 758 base::TimeDelta::FromMilliseconds(milliseconds_of_decoding)); |
759 Send(new ChromeUtilityHostMsg_CheckMediaFile_Finished(check_success)); | 759 Send(new ChromeUtilityHostMsg_CheckMediaFile_Finished(check_success)); |
760 ReleaseProcessIfNeeded(); | 760 ReleaseProcessIfNeeded(); |
761 } | 761 } |
762 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 762 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
763 | 763 |
764 #if defined(OS_WIN) | 764 #if defined(OS_WIN) |
765 void ChromeContentUtilityClient::OnParseITunesPrefXml( | 765 void ChromeContentUtilityClient::OnParseITunesPrefXml( |
766 const std::string& itunes_xml_data) { | 766 const std::string& itunes_xml_data) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 picasa::PicasaAlbumsIndexer indexer(album_uids); | 827 picasa::PicasaAlbumsIndexer indexer(album_uids); |
828 indexer.ParseFolderINI(folders_inis); | 828 indexer.ParseFolderINI(folders_inis); |
829 | 829 |
830 Send(new ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished( | 830 Send(new ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished( |
831 indexer.albums_images())); | 831 indexer.albums_images())); |
832 ReleaseProcessIfNeeded(); | 832 ReleaseProcessIfNeeded(); |
833 } | 833 } |
834 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 834 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
835 | 835 |
836 } // namespace chrome | 836 } // namespace chrome |
OLD | NEW |