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_vector.h" | 9 #include "base/memory/scoped_vector.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 UtilityMessageHandler; | 31 class UtilityMessageHandler; |
35 | 32 |
36 class ChromeContentUtilityClient : public content::ContentUtilityClient { | 33 class ChromeContentUtilityClient : public content::ContentUtilityClient { |
37 public: | 34 public: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); | 81 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); |
85 void OnStartupPing(); | 82 void OnStartupPing(); |
86 void OnAnalyzeZipFileForDownloadProtection( | 83 void OnAnalyzeZipFileForDownloadProtection( |
87 IPC::PlatformFileForTransit zip_file); | 84 IPC::PlatformFileForTransit zip_file); |
88 | 85 |
89 #if defined(OS_WIN) | 86 #if defined(OS_WIN) |
90 void OnParseITunesPrefXml(const std::string& itunes_xml_data); | 87 void OnParseITunesPrefXml(const std::string& itunes_xml_data); |
91 #endif // defined(OS_WIN) | 88 #endif // defined(OS_WIN) |
92 | 89 |
93 #if defined(OS_WIN) || defined(OS_MACOSX) | 90 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 91 void OnParseITunesLibraryXmlFile( |
| 92 IPC::PlatformFileForTransit itunes_library_file); |
| 93 |
94 void OnParsePicasaPMPDatabase( | 94 void OnParsePicasaPMPDatabase( |
95 const picasa::AlbumTableFilesForTransit& album_table_files); | 95 const picasa::AlbumTableFilesForTransit& album_table_files); |
96 | 96 |
97 void OnParseITunesLibraryXmlFile( | 97 void OnIndexPicasaAlbumsContents( |
98 IPC::PlatformFileForTransit itunes_library_file); | 98 const picasa::AlbumUIDSet& album_uids, |
| 99 const std::vector<picasa::FolderINIContents>& folders_inis); |
99 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 100 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
100 | 101 |
101 typedef ScopedVector<UtilityMessageHandler> Handlers; | 102 typedef ScopedVector<UtilityMessageHandler> Handlers; |
102 Handlers handlers_; | 103 Handlers handlers_; |
103 | 104 |
104 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 105 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace chrome | 108 } // namespace chrome |
108 | 109 |
109 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 110 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |