| 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 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 11 #include "chrome/common/media_galleries/picasa_types.h" |
| 11 #include "content/public/utility/content_utility_client.h" | 12 #include "content/public/utility/content_utility_client.h" |
| 12 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
| 13 #include "printing/pdf_render_settings.h" | 14 #include "printing/pdf_render_settings.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class FilePath; | 17 class FilePath; |
| 17 struct FileDescriptor; | 18 struct FileDescriptor; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace gfx { | 21 namespace gfx { |
| 21 class Rect; | 22 class Rect; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace picasa { | |
| 25 struct AlbumTableFilesForTransit; | |
| 26 } | |
| 27 | |
| 28 namespace printing { | 25 namespace printing { |
| 29 struct PageRange; | 26 struct PageRange; |
| 30 } | 27 } |
| 31 | 28 |
| 32 namespace chrome { | 29 namespace chrome { |
| 33 | 30 |
| 34 class ProfileImportHandler; | 31 class ProfileImportHandler; |
| 35 | 32 |
| 36 class ChromeContentUtilityClient : public content::ContentUtilityClient { | 33 class ChromeContentUtilityClient : public content::ContentUtilityClient { |
| 37 public: | 34 public: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); | 79 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); |
| 83 void OnStartupPing(); | 80 void OnStartupPing(); |
| 84 void OnAnalyzeZipFileForDownloadProtection( | 81 void OnAnalyzeZipFileForDownloadProtection( |
| 85 IPC::PlatformFileForTransit zip_file); | 82 IPC::PlatformFileForTransit zip_file); |
| 86 | 83 |
| 87 #if defined(OS_WIN) | 84 #if defined(OS_WIN) |
| 88 void OnParseITunesPrefXml(const std::string& itunes_xml_data); | 85 void OnParseITunesPrefXml(const std::string& itunes_xml_data); |
| 89 #endif // defined(OS_WIN) | 86 #endif // defined(OS_WIN) |
| 90 | 87 |
| 91 #if defined(OS_WIN) || defined(OS_MACOSX) | 88 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 89 void OnParseITunesLibraryXmlFile( |
| 90 IPC::PlatformFileForTransit itunes_library_file); |
| 91 |
| 92 void OnParsePicasaPMPDatabase( | 92 void OnParsePicasaPMPDatabase( |
| 93 const picasa::AlbumTableFilesForTransit& album_table_files); | 93 const picasa::AlbumTableFilesForTransit& album_table_files); |
| 94 | 94 |
| 95 void OnParseITunesLibraryXmlFile( | 95 void OnIndexPicasaAlbumsContents( |
| 96 IPC::PlatformFileForTransit itunes_library_file); | 96 const picasa::AlbumUIDSet& album_uids, |
| 97 const std::vector<picasa::FolderINIContents>& folders_inis); |
| 97 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 98 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 98 | 99 |
| 99 scoped_ptr<ProfileImportHandler> import_handler_; | 100 scoped_ptr<ProfileImportHandler> import_handler_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 102 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace chrome | 105 } // namespace chrome |
| 105 | 106 |
| 106 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 107 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |