| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #include "chrome/browser/download/save_package.h" | 5 #include "chrome/browser/download/save_package.h" | 
| 6 | 6 | 
|  | 7 #include "app/l10n_util.h" | 
| 7 #include "base/file_util.h" | 8 #include "base/file_util.h" | 
| 8 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" | 
| 10 #include "base/path_service.h" | 11 #include "base/path_service.h" | 
| 11 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" | 
| 12 #include "base/string_util.h" | 13 #include "base/string_util.h" | 
| 13 #include "base/task.h" | 14 #include "base/task.h" | 
| 14 #include "base/thread.h" | 15 #include "base/thread.h" | 
| 15 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" | 
| 16 #include "chrome/browser/download/download_item_model.h" | 17 #include "chrome/browser/download/download_item_model.h" | 
| 17 #include "chrome/browser/download/download_manager.h" | 18 #include "chrome/browser/download/download_manager.h" | 
| 18 #include "chrome/browser/download/download_shelf.h" | 19 #include "chrome/browser/download/download_shelf.h" | 
| 19 #include "chrome/browser/download/save_file.h" | 20 #include "chrome/browser/download/save_file.h" | 
| 20 #include "chrome/browser/download/save_file_manager.h" | 21 #include "chrome/browser/download/save_file_manager.h" | 
| 21 #include "chrome/browser/profile.h" | 22 #include "chrome/browser/profile.h" | 
| 22 #include "chrome/browser/renderer_host/render_process_host.h" | 23 #include "chrome/browser/renderer_host/render_process_host.h" | 
| 23 #include "chrome/browser/renderer_host/render_view_host.h" | 24 #include "chrome/browser/renderer_host/render_view_host.h" | 
| 24 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 25 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 
| 25 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 26 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 
| 26 #include "chrome/browser/tab_contents/tab_contents.h" | 27 #include "chrome/browser/tab_contents/tab_contents.h" | 
| 27 #include "chrome/browser/tab_contents/tab_util.h" | 28 #include "chrome/browser/tab_contents/tab_util.h" | 
| 28 #include "chrome/common/chrome_paths.h" | 29 #include "chrome/common/chrome_paths.h" | 
| 29 #include "chrome/common/l10n_util.h" |  | 
| 30 #include "chrome/common/platform_util.h" | 30 #include "chrome/common/platform_util.h" | 
| 31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" | 
| 32 #include "chrome/common/pref_service.h" | 32 #include "chrome/common/pref_service.h" | 
| 33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" | 
| 34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" | 
| 35 #include "net/base/io_buffer.h" | 35 #include "net/base/io_buffer.h" | 
| 36 #include "net/base/mime_util.h" | 36 #include "net/base/mime_util.h" | 
| 37 #include "net/base/net_util.h" | 37 #include "net/base/net_util.h" | 
| 38 #include "net/url_request/url_request_context.h" | 38 #include "net/url_request/url_request_context.h" | 
| 39 #include "webkit/glue/dom_serializer_delegate.h" | 39 #include "webkit/glue/dom_serializer_delegate.h" | 
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1146                                int index, void* params) { | 1146                                int index, void* params) { | 
| 1147   SavePackageParam* save_params = reinterpret_cast<SavePackageParam*>(params); | 1147   SavePackageParam* save_params = reinterpret_cast<SavePackageParam*>(params); | 
| 1148   ContinueSave(save_params, path, index); | 1148   ContinueSave(save_params, path, index); | 
| 1149   delete save_params; | 1149   delete save_params; | 
| 1150 } | 1150 } | 
| 1151 | 1151 | 
| 1152 void SavePackage::FileSelectionCanceled(void* params) { | 1152 void SavePackage::FileSelectionCanceled(void* params) { | 
| 1153   SavePackageParam* save_params = reinterpret_cast<SavePackageParam*>(params); | 1153   SavePackageParam* save_params = reinterpret_cast<SavePackageParam*>(params); | 
| 1154   delete save_params; | 1154   delete save_params; | 
| 1155 } | 1155 } | 
| OLD | NEW | 
|---|