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/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_manager.h" | 16 #include "chrome/browser/download/download_manager.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
18 #include "chrome/browser/render_process_host.h" | 18 #include "chrome/browser/render_process_host.h" |
19 #include "chrome/browser/render_view_host.h" | 19 #include "chrome/browser/render_view_host.h" |
20 #include "chrome/browser/render_view_host_delegate.h" | 20 #include "chrome/browser/render_view_host_delegate.h" |
21 #include "chrome/browser/resource_dispatcher_host.h" | 21 #include "chrome/browser/resource_dispatcher_host.h" |
22 #include "chrome/browser/save_file.h" | 22 #include "chrome/browser/save_file.h" |
23 #include "chrome/browser/save_file_manager.h" | 23 #include "chrome/browser/save_file_manager.h" |
24 #include "chrome/browser/save_page_model.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" |
(...skipping 1028 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 |