| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/save_package.h" | 5 #include "chrome/browser/download/save_package.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/task.h" | 12 #include "base/task.h" |
| 13 #include "base/thread.h" | 13 #include "base/thread.h" |
| 14 #include "base/win_util.h" | 14 #include "base/win_util.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/download/download_manager.h" | 16 #include "chrome/browser/download/download_manager.h" |
| 17 #include "chrome/browser/download/save_file.h" |
| 18 #include "chrome/browser/download/save_file_manager.h" |
| 19 #include "chrome/browser/download/save_page_model.h" |
| 17 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profile.h" |
| 18 #include "chrome/browser/render_process_host.h" | 21 #include "chrome/browser/render_process_host.h" |
| 19 #include "chrome/browser/render_view_host.h" | 22 #include "chrome/browser/render_view_host.h" |
| 20 #include "chrome/browser/render_view_host_delegate.h" | 23 #include "chrome/browser/render_view_host_delegate.h" |
| 21 #include "chrome/browser/resource_dispatcher_host.h" | 24 #include "chrome/browser/resource_dispatcher_host.h" |
| 22 #include "chrome/browser/save_file.h" | |
| 23 #include "chrome/browser/save_file_manager.h" | |
| 24 #include "chrome/browser/save_page_model.h" | |
| 25 #include "chrome/browser/tab_util.h" | 25 #include "chrome/browser/tab_util.h" |
| 26 #include "chrome/browser/web_contents.h" | 26 #include "chrome/browser/web_contents.h" |
| 27 #include "chrome/browser/views/download_shelf_view.h" | 27 #include "chrome/browser/views/download_shelf_view.h" |
| 28 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
| 29 #include "chrome/common/l10n_util.h" | 29 #include "chrome/common/l10n_util.h" |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/common/pref_service.h" | 31 #include "chrome/common/pref_service.h" |
| 32 #include "chrome/common/stl_util-inl.h" | 32 #include "chrome/common/stl_util-inl.h" |
| 33 #include "chrome/common/win_util.h" | 33 #include "chrome/common/win_util.h" |
| 34 #include "net/base/net_util.h" | 34 #include "net/base/net_util.h" |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 if (available_length > dir_path_length) { | 1055 if (available_length > dir_path_length) { |
| 1056 *pure_file_name = | 1056 *pure_file_name = |
| 1057 pure_file_name->substr(0, available_length - dir_path_length); | 1057 pure_file_name->substr(0, available_length - dir_path_length); |
| 1058 return true; | 1058 return true; |
| 1059 } else { | 1059 } else { |
| 1060 pure_file_name->clear(); | 1060 pure_file_name->clear(); |
| 1061 return false; | 1061 return false; |
| 1062 } | 1062 } |
| 1063 } | 1063 } |
| 1064 | 1064 |
| OLD | NEW |