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

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 9317018: referrer_charset is a lie. It's really the user's default_charset. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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) 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual const FilePath& GetFullPath() const OVERRIDE; 146 virtual const FilePath& GetFullPath() const OVERRIDE;
147 virtual void SetPathUniquifier(int uniquifier) OVERRIDE; 147 virtual void SetPathUniquifier(int uniquifier) OVERRIDE;
148 virtual const GURL& GetURL() const OVERRIDE; 148 virtual const GURL& GetURL() const OVERRIDE;
149 virtual const std::vector<GURL>& GetUrlChain() const OVERRIDE; 149 virtual const std::vector<GURL>& GetUrlChain() const OVERRIDE;
150 virtual const GURL& GetOriginalUrl() const OVERRIDE; 150 virtual const GURL& GetOriginalUrl() const OVERRIDE;
151 virtual const GURL& GetReferrerUrl() const OVERRIDE; 151 virtual const GURL& GetReferrerUrl() const OVERRIDE;
152 virtual std::string GetSuggestedFilename() const OVERRIDE; 152 virtual std::string GetSuggestedFilename() const OVERRIDE;
153 virtual std::string GetContentDisposition() const OVERRIDE; 153 virtual std::string GetContentDisposition() const OVERRIDE;
154 virtual std::string GetMimeType() const OVERRIDE; 154 virtual std::string GetMimeType() const OVERRIDE;
155 virtual std::string GetOriginalMimeType() const OVERRIDE; 155 virtual std::string GetOriginalMimeType() const OVERRIDE;
156 virtual std::string GetReferrerCharset() const OVERRIDE; 156 virtual std::string GetDefaultCharset() const OVERRIDE;
157 virtual std::string GetRemoteAddress() const OVERRIDE; 157 virtual std::string GetRemoteAddress() const OVERRIDE;
158 virtual int64 GetTotalBytes() const OVERRIDE; 158 virtual int64 GetTotalBytes() const OVERRIDE;
159 virtual void SetTotalBytes(int64 total_bytes) OVERRIDE; 159 virtual void SetTotalBytes(int64 total_bytes) OVERRIDE;
160 virtual const std::string& GetHash() const OVERRIDE; 160 virtual const std::string& GetHash() const OVERRIDE;
161 virtual int64 GetReceivedBytes() const OVERRIDE; 161 virtual int64 GetReceivedBytes() const OVERRIDE;
162 virtual const std::string& GetHashState() const OVERRIDE; 162 virtual const std::string& GetHashState() const OVERRIDE;
163 virtual int32 GetId() const OVERRIDE; 163 virtual int32 GetId() const OVERRIDE;
164 virtual content::DownloadId GetGlobalId() const OVERRIDE; 164 virtual content::DownloadId GetGlobalId() const OVERRIDE;
165 virtual base::Time GetStartTime() const OVERRIDE; 165 virtual base::Time GetStartTime() const OVERRIDE;
166 virtual base::Time GetEndTime() const OVERRIDE; 166 virtual base::Time GetEndTime() const OVERRIDE;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 std::string content_disposition_; 264 std::string content_disposition_;
265 265
266 // Mime-type from the header. Subject to change. 266 // Mime-type from the header. Subject to change.
267 std::string mime_type_; 267 std::string mime_type_;
268 268
269 // The value of the content type header sent with the downloaded item. It 269 // The value of the content type header sent with the downloaded item. It
270 // may be different from |mime_type_|, which may be set based on heuristics 270 // may be different from |mime_type_|, which may be set based on heuristics
271 // which may look at the file extension and first few bytes of the file. 271 // which may look at the file extension and first few bytes of the file.
272 std::string original_mime_type_; 272 std::string original_mime_type_;
273 273
274 // The charset of the referring page where the download request comes from. 274 // The user's default charset. It's used to construct a suggested filename.
275 // It's used to construct a suggested filename. 275 std::string default_charset_;
276 std::string referrer_charset_;
277 276
278 // The remote IP address where the download was fetched from. Copied from 277 // The remote IP address where the download was fetched from. Copied from
279 // DownloadCreateInfo::remote_address. 278 // DownloadCreateInfo::remote_address.
280 std::string remote_address_; 279 std::string remote_address_;
281 280
282 // Total bytes expected. 281 // Total bytes expected.
283 int64 total_bytes_; 282 int64 total_bytes_;
284 283
285 // Current received bytes. 284 // Current received bytes.
286 int64 received_bytes_; 285 int64 received_bytes_;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 bool delegate_delayed_complete_; 367 bool delegate_delayed_complete_;
369 368
370 // External Data storage. All objects in the store 369 // External Data storage. All objects in the store
371 // are owned by the DownloadItemImpl. 370 // are owned by the DownloadItemImpl.
372 std::map<const void*, ExternalData*> external_data_map_; 371 std::map<const void*, ExternalData*> external_data_map_;
373 372
374 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 373 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
375 }; 374 };
376 375
377 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 376 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698