Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 103283003: Media Galleries API Metadata: SafeMediaMetadataParser and IPCTunnelDataReader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix function definition formatting Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_vector.h" 10 #include "base/memory/scoped_vector.h"
10 #include "base/platform_file.h" 11 #include "base/platform_file.h"
11 #include "chrome/common/media_galleries/picasa_types.h" 12 #include "chrome/common/media_galleries/picasa_types.h"
12 #include "content/public/utility/content_utility_client.h" 13 #include "content/public/utility/content_utility_client.h"
13 #include "ipc/ipc_platform_file.h" 14 #include "ipc/ipc_platform_file.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
25 namespace metadata {
26 class MediaMetadataParser;
27 }
28
24 namespace printing { 29 namespace printing {
25 class PdfRenderSettings; 30 class PdfRenderSettings;
26 struct PageRange; 31 struct PageRange;
27 } 32 }
28 33
29 namespace chrome { 34 namespace chrome {
30 35
31 class UtilityMessageHandler; 36 class UtilityMessageHandler;
32 37
33 class ChromeContentUtilityClient : public content::ContentUtilityClient { 38 class ChromeContentUtilityClient : public content::ContentUtilityClient {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const printing::PdfRenderSettings& settings, 90 const printing::PdfRenderSettings& settings,
86 base::PlatformFile bitmap_file); 91 base::PlatformFile bitmap_file);
87 92
88 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 93 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
89 void OnStartupPing(); 94 void OnStartupPing();
90 void OnAnalyzeZipFileForDownloadProtection( 95 void OnAnalyzeZipFileForDownloadProtection(
91 const IPC::PlatformFileForTransit& zip_file); 96 const IPC::PlatformFileForTransit& zip_file);
92 #if !defined(OS_ANDROID) && !defined(OS_IOS) 97 #if !defined(OS_ANDROID) && !defined(OS_IOS)
93 void OnCheckMediaFile(int64 milliseconds_of_decoding, 98 void OnCheckMediaFile(int64 milliseconds_of_decoding,
94 const IPC::PlatformFileForTransit& media_file); 99 const IPC::PlatformFileForTransit& media_file);
100 void OnParseMediaMetadata(const std::string& mime_type, int64 total_size);
95 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 101 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
96 102
97 #if defined(OS_WIN) 103 #if defined(OS_WIN)
98 void OnParseITunesPrefXml(const std::string& itunes_xml_data); 104 void OnParseITunesPrefXml(const std::string& itunes_xml_data);
99 #endif // defined(OS_WIN) 105 #endif // defined(OS_WIN)
100 106
101 #if defined(OS_MACOSX) 107 #if defined(OS_MACOSX)
102 void OnParseIPhotoLibraryXmlFile( 108 void OnParseIPhotoLibraryXmlFile(
103 const IPC::PlatformFileForTransit& iphoto_library_file); 109 const IPC::PlatformFileForTransit& iphoto_library_file);
104 #endif // defined(OS_MACOSX) 110 #endif // defined(OS_MACOSX)
105 111
106 #if defined(OS_WIN) || defined(OS_MACOSX) 112 #if defined(OS_WIN) || defined(OS_MACOSX)
107 void OnParseITunesLibraryXmlFile( 113 void OnParseITunesLibraryXmlFile(
108 const IPC::PlatformFileForTransit& itunes_library_file); 114 const IPC::PlatformFileForTransit& itunes_library_file);
109 115
110 void OnParsePicasaPMPDatabase( 116 void OnParsePicasaPMPDatabase(
111 const picasa::AlbumTableFilesForTransit& album_table_files); 117 const picasa::AlbumTableFilesForTransit& album_table_files);
112 118
113 void OnIndexPicasaAlbumsContents( 119 void OnIndexPicasaAlbumsContents(
114 const picasa::AlbumUIDSet& album_uids, 120 const picasa::AlbumUIDSet& album_uids,
115 const std::vector<picasa::FolderINIContents>& folders_inis); 121 const std::vector<picasa::FolderINIContents>& folders_inis);
116 #endif // defined(OS_WIN) || defined(OS_MACOSX) 122 #endif // defined(OS_WIN) || defined(OS_MACOSX)
117 123
118 typedef ScopedVector<UtilityMessageHandler> Handlers; 124 typedef ScopedVector<UtilityMessageHandler> Handlers;
119 Handlers handlers_; 125 Handlers handlers_;
120 126
127 #if !defined(OS_ANDROID) && !defined(OS_IOS)
128 scoped_ptr<metadata::MediaMetadataParser> media_metadata_parser_;
129 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
130
121 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 131 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
122 }; 132 };
123 133
124 } // namespace chrome 134 } // namespace chrome
125 135
126 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 136 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698