Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: content/public/browser/download_url_parameters.h

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void set_prefer_cache(bool prefer_cache) { 82 void set_prefer_cache(bool prefer_cache) {
83 prefer_cache_ = prefer_cache; 83 prefer_cache_ = prefer_cache;
84 } 84 }
85 void set_post_id(int64 post_id) { post_id_ = post_id; } 85 void set_post_id(int64 post_id) { post_id_ = post_id; }
86 void set_callback(const OnStartedCallback& callback) { 86 void set_callback(const OnStartedCallback& callback) {
87 callback_ = callback; 87 callback_ = callback;
88 } 88 }
89 void set_file_path(const base::FilePath& file_path) { 89 void set_file_path(const base::FilePath& file_path) {
90 save_info_.file_path = file_path; 90 save_info_.file_path = file_path;
91 } 91 }
92 void set_suggested_name(const string16& suggested_name) { 92 void set_suggested_name(const base::string16& suggested_name) {
93 save_info_.suggested_name = suggested_name; 93 save_info_.suggested_name = suggested_name;
94 } 94 }
95 void set_offset(int64 offset) { save_info_.offset = offset; } 95 void set_offset(int64 offset) { save_info_.offset = offset; }
96 void set_hash_state(std::string hash_state) { 96 void set_hash_state(std::string hash_state) {
97 save_info_.hash_state = hash_state; 97 save_info_.hash_state = hash_state;
98 } 98 }
99 void set_prompt(bool prompt) { save_info_.prompt_for_save_location = prompt; } 99 void set_prompt(bool prompt) { save_info_.prompt_for_save_location = prompt; }
100 void set_file_stream(scoped_ptr<net::FileStream> file_stream) { 100 void set_file_stream(scoped_ptr<net::FileStream> file_stream) {
101 save_info_.file_stream = file_stream.Pass(); 101 save_info_.file_stream = file_stream.Pass();
102 } 102 }
(...skipping 16 matching lines...) Expand all
119 RequestHeadersType::const_iterator request_headers_begin() const { 119 RequestHeadersType::const_iterator request_headers_begin() const {
120 return request_headers_.begin(); 120 return request_headers_.begin();
121 } 121 }
122 RequestHeadersType::const_iterator request_headers_end() const { 122 RequestHeadersType::const_iterator request_headers_end() const {
123 return request_headers_.end(); 123 return request_headers_.end();
124 } 124 }
125 content::ResourceContext* resource_context() const { 125 content::ResourceContext* resource_context() const {
126 return resource_context_; 126 return resource_context_;
127 } 127 }
128 const base::FilePath& file_path() const { return save_info_.file_path; } 128 const base::FilePath& file_path() const { return save_info_.file_path; }
129 const string16& suggested_name() const { return save_info_.suggested_name; } 129 const base::string16& suggested_name() const {
130 return save_info_.suggested_name;
131 }
130 int64 offset() const { return save_info_.offset; } 132 int64 offset() const { return save_info_.offset; }
131 const std::string& hash_state() const { return save_info_.hash_state; } 133 const std::string& hash_state() const { return save_info_.hash_state; }
132 bool prompt() const { return save_info_.prompt_for_save_location; } 134 bool prompt() const { return save_info_.prompt_for_save_location; }
133 const GURL& url() const { return url_; } 135 const GURL& url() const { return url_; }
134 136
135 // Note that this is state changing--the DownloadUrlParameters object 137 // Note that this is state changing--the DownloadUrlParameters object
136 // will not have a file_stream attached to it after this call. 138 // will not have a file_stream attached to it after this call.
137 scoped_ptr<net::FileStream> GetFileStream() { 139 scoped_ptr<net::FileStream> GetFileStream() {
138 return save_info_.file_stream.Pass(); 140 return save_info_.file_stream.Pass();
139 } 141 }
(...skipping 16 matching lines...) Expand all
156 ResourceContext* resource_context_; 158 ResourceContext* resource_context_;
157 DownloadSaveInfo save_info_; 159 DownloadSaveInfo save_info_;
158 GURL url_; 160 GURL url_;
159 161
160 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters); 162 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters);
161 }; 163 };
162 164
163 } // namespace content 165 } // namespace content
164 166
165 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ 167 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_save_info.h ('k') | content/public/browser/javascript_dialog_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698