| 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_BROWSER_CHROMEOS_FILE_MANAGER_ZIP_FILE_CREATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_ZIP_FILE_CREATOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_ZIP_FILE_CREATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_ZIP_FILE_CREATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
| 13 #include "chrome/common/extensions/extension.h" | |
| 14 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/utility_process_host_client.h" | 14 #include "content/public/browser/utility_process_host_client.h" |
| 15 #include "extensions/common/extension.h" |
| 16 | 16 |
| 17 namespace file_manager { | 17 namespace file_manager { |
| 18 | 18 |
| 19 // ZipFileCreator creates a ZIP file from a specified list of files and | 19 // ZipFileCreator creates a ZIP file from a specified list of files and |
| 20 // directories under a common parent directory. This is done in a sandboxed | 20 // directories under a common parent directory. This is done in a sandboxed |
| 21 // subprocess to protect the browser process from handling arbitrary input data | 21 // subprocess to protect the browser process from handling arbitrary input data |
| 22 // from untrusted sources. | 22 // from untrusted sources. |
| 23 // | 23 // |
| 24 // Lifetime management: | 24 // Lifetime management: |
| 25 // | 25 // |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // The output zip file. | 84 // The output zip file. |
| 85 base::FilePath dest_file_; | 85 base::FilePath dest_file_; |
| 86 | 86 |
| 87 // Whether we've received a response from the utility process yet. | 87 // Whether we've received a response from the utility process yet. |
| 88 bool got_response_; | 88 bool got_response_; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace file_manager | 91 } // namespace file_manager |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_ZIP_FILE_CREATOR_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_ZIP_FILE_CREATOR_H_ |
| OLD | NEW |