| 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 CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void set_callback(const OnStartedCallback& callback) { | 88 void set_callback(const OnStartedCallback& callback) { |
| 89 callback_ = callback; | 89 callback_ = callback; |
| 90 } | 90 } |
| 91 void set_file_path(const base::FilePath& file_path) { | 91 void set_file_path(const base::FilePath& file_path) { |
| 92 save_info_.file_path = file_path; | 92 save_info_.file_path = file_path; |
| 93 } | 93 } |
| 94 void set_suggested_name(const base::string16& suggested_name) { | 94 void set_suggested_name(const base::string16& suggested_name) { |
| 95 save_info_.suggested_name = suggested_name; | 95 save_info_.suggested_name = suggested_name; |
| 96 } | 96 } |
| 97 void set_offset(int64 offset) { save_info_.offset = offset; } | 97 void set_offset(int64 offset) { save_info_.offset = offset; } |
| 98 void set_hash_state(std::string hash_state) { | 98 void set_hash_state(const std::string& hash_state) { |
| 99 save_info_.hash_state = hash_state; | 99 save_info_.hash_state = hash_state; |
| 100 } | 100 } |
| 101 void set_prompt(bool prompt) { save_info_.prompt_for_save_location = prompt; } | 101 void set_prompt(bool prompt) { save_info_.prompt_for_save_location = prompt; } |
| 102 void set_file(base::File file) { | 102 void set_file(base::File file) { |
| 103 save_info_.file = file.Pass(); | 103 save_info_.file = file.Pass(); |
| 104 } | 104 } |
| 105 void set_do_not_prompt_for_login(bool do_not_prompt) { | 105 void set_do_not_prompt_for_login(bool do_not_prompt) { |
| 106 do_not_prompt_for_login_ = do_not_prompt; | 106 do_not_prompt_for_login_ = do_not_prompt; |
| 107 } | 107 } |
| 108 | 108 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 DownloadSaveInfo save_info_; | 165 DownloadSaveInfo save_info_; |
| 166 GURL url_; | 166 GURL url_; |
| 167 bool do_not_prompt_for_login_; | 167 bool do_not_prompt_for_login_; |
| 168 | 168 |
| 169 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters); | 169 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters); |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 } // namespace content | 172 } // namespace content |
| 173 | 173 |
| 174 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ | 174 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ |
| OLD | NEW |