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

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

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void set_post_body(const std::string& post_body) { 79 void set_post_body(const std::string& post_body) {
80 post_body_ = post_body; 80 post_body_ = post_body;
81 } 81 }
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 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 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; }
(...skipping 21 matching lines...) Expand all
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 ResourceDispatcherHost* resource_dispatcher_host() const { 128 ResourceDispatcherHost* resource_dispatcher_host() const {
129 return resource_dispatcher_host_; 129 return resource_dispatcher_host_;
130 } 130 }
131 const FilePath& file_path() const { return save_info_.file_path; } 131 const base::FilePath& file_path() const { return save_info_.file_path; }
132 const string16& suggested_name() const { return save_info_.suggested_name; } 132 const string16& suggested_name() const { return save_info_.suggested_name; }
133 int64 offset() const { return save_info_.offset; } 133 int64 offset() const { return save_info_.offset; }
134 const std::string& hash_state() const { return save_info_.hash_state; } 134 const std::string& hash_state() const { return save_info_.hash_state; }
135 bool prompt() const { return save_info_.prompt_for_save_location; } 135 bool prompt() const { return save_info_.prompt_for_save_location; }
136 const GURL& url() const { return url_; } 136 const GURL& url() const { return url_; }
137 137
138 // Note that this is state changing--the DownloadUrlParameters object 138 // Note that this is state changing--the DownloadUrlParameters object
139 // will not have a file_stream attached to it after this call. 139 // will not have a file_stream attached to it after this call.
140 scoped_ptr<net::FileStream> GetFileStream() { 140 scoped_ptr<net::FileStream> GetFileStream() {
141 return save_info_.file_stream.Pass(); 141 return save_info_.file_stream.Pass();
(...skipping 18 matching lines...) Expand all
160 ResourceDispatcherHost* resource_dispatcher_host_; 160 ResourceDispatcherHost* resource_dispatcher_host_;
161 DownloadSaveInfo save_info_; 161 DownloadSaveInfo save_info_;
162 GURL url_; 162 GURL url_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters); 164 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters);
165 }; 165 };
166 166
167 } // namespace content 167 } // namespace content
168 168
169 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ 169 #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/indexed_db_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698