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

Unified Diff: chrome/utility/chrome_content_utility_client.h

Issue 11309014: File manager: support for zipping selected files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sanitize source relative paths to reject absolute and trick paths. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/chrome_content_utility_client.h
diff --git a/chrome/utility/chrome_content_utility_client.h b/chrome/utility/chrome_content_utility_client.h
index 0aba6093c71bce4fdbed45b96693ab5a9a4e941f..3b40de137f430512f5f8a813877b04863856cbd8 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -16,6 +16,7 @@ class Importer;
namespace base {
class DictionaryValue;
+class FileDescriptor;
class Thread;
}
@@ -63,6 +64,12 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
const std::vector<unsigned char>& encoded_data);
void OnParseJSON(const std::string& json);
+#if defined(OS_CHROMEOS)
+ void OnCreateZipFile(const FilePath& src_dir,
+ const std::vector<FilePath>& src_relative_paths,
+ const base::FileDescriptor& dest_fd);
+#endif // defined(OS_CHROMEOS)
+
#if defined(OS_WIN)
// Helper method for Windows.
// |highest_rendered_page_number| is set to -1 on failure to render any page.

Powered by Google App Engine
This is Rietveld 408576698