OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/download_state_info.h" | 5 #include "content/browser/download/download_state_info.h" |
6 | 6 |
7 #include "chrome/browser/download/download_item.h" | 7 #include "content/browser/download/download_item.h" |
8 | 8 |
9 DownloadStateInfo::DownloadStateInfo() | 9 DownloadStateInfo::DownloadStateInfo() |
10 : path_uniquifier(0), | 10 : path_uniquifier(0), |
11 has_user_gesture(false), | 11 has_user_gesture(false), |
12 prompt_user_for_save_location(false), | 12 prompt_user_for_save_location(false), |
13 is_dangerous_file(false), | 13 is_dangerous_file(false), |
14 is_dangerous_url(false), | 14 is_dangerous_url(false), |
15 is_extension_install(false) { | 15 is_extension_install(false) { |
16 } | 16 } |
17 | 17 |
(...skipping 23 matching lines...) Expand all Loading... |
41 prompt_user_for_save_location(prompt_user_for_save_location), | 41 prompt_user_for_save_location(prompt_user_for_save_location), |
42 is_dangerous_file(dangerous_file), | 42 is_dangerous_file(dangerous_file), |
43 is_dangerous_url(dangerous_url), | 43 is_dangerous_url(dangerous_url), |
44 is_extension_install(extension_install), | 44 is_extension_install(extension_install), |
45 force_file_name(forced_name) { | 45 force_file_name(forced_name) { |
46 } | 46 } |
47 | 47 |
48 bool DownloadStateInfo::IsDangerous() const { | 48 bool DownloadStateInfo::IsDangerous() const { |
49 return is_dangerous_url || is_dangerous_file; | 49 return is_dangerous_url || is_dangerous_file; |
50 } | 50 } |
OLD | NEW |