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

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

Issue 18562007: Media Galleries API Picasa: Put INI indexing step into sandboxed utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0035-picasa-import-sandbox-pmp-reading
Patch Set: patch that compiles Created 7 years, 5 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
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_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
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_
OLDNEW
« no previous file with comments | « chrome/common/media_galleries/picasa_types.h ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698