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

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

Issue 9314037: Save As for content retrieved via POST works in most circumstances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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) 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 5
6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
8 #pragma once 8 #pragma once
9 9
10 #include <map> 10 #include <map>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const FilePath& full_path, 57 const FilePath& full_path,
58 int uniquifier) OVERRIDE; 58 int uniquifier) OVERRIDE;
59 virtual int RemoveDownloadsBetween(base::Time remove_begin, 59 virtual int RemoveDownloadsBetween(base::Time remove_begin,
60 base::Time remove_end) OVERRIDE; 60 base::Time remove_end) OVERRIDE;
61 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; 61 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE;
62 virtual int RemoveAllDownloads() OVERRIDE; 62 virtual int RemoveAllDownloads() OVERRIDE;
63 virtual void DownloadUrl(const GURL& url, 63 virtual void DownloadUrl(const GURL& url,
64 const GURL& referrer, 64 const GURL& referrer,
65 const std::string& referrer_encoding, 65 const std::string& referrer_encoding,
66 bool prefer_cache, 66 bool prefer_cache,
67 int64 post_id,
67 const DownloadSaveInfo& save_info, 68 const DownloadSaveInfo& save_info,
68 content::WebContents* web_contents) OVERRIDE; 69 content::WebContents* web_contents) OVERRIDE;
69 virtual void AddObserver(Observer* observer) OVERRIDE; 70 virtual void AddObserver(Observer* observer) OVERRIDE;
70 virtual void RemoveObserver(Observer* observer) OVERRIDE; 71 virtual void RemoveObserver(Observer* observer) OVERRIDE;
71 virtual void OnPersistentStoreQueryComplete( 72 virtual void OnPersistentStoreQueryComplete(
72 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE; 73 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE;
73 virtual void OnItemAddedToPersistentStore(int32 download_id, 74 virtual void OnItemAddedToPersistentStore(int32 download_id,
74 int64 db_handle) OVERRIDE; 75 int64 db_handle) OVERRIDE;
75 virtual int InProgressCount() const OVERRIDE; 76 virtual int InProgressCount() const OVERRIDE;
76 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; 77 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 content::DownloadManagerDelegate* delegate_; 261 content::DownloadManagerDelegate* delegate_;
261 262
262 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. 263 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed.
263 // For debugging only. 264 // For debugging only.
264 int64 largest_db_handle_in_history_; 265 int64 largest_db_handle_in_history_;
265 266
266 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 267 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
267 }; 268 };
268 269
269 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 270 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698