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/browser/download/download_manager_impl.h

Issue 10232010: DownloadUrlParameters (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixes Created 8 years, 7 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int64 size, 50 int64 size,
51 const std::string& hash_state, 51 const std::string& hash_state,
52 content::DownloadInterruptReason reason) OVERRIDE; 52 content::DownloadInterruptReason reason) OVERRIDE;
53 virtual void OnDownloadRenamedToFinalName(int download_id, 53 virtual void OnDownloadRenamedToFinalName(int download_id,
54 const FilePath& full_path, 54 const FilePath& full_path,
55 int uniquifier) OVERRIDE; 55 int uniquifier) OVERRIDE;
56 virtual int RemoveDownloadsBetween(base::Time remove_begin, 56 virtual int RemoveDownloadsBetween(base::Time remove_begin,
57 base::Time remove_end) OVERRIDE; 57 base::Time remove_end) OVERRIDE;
58 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; 58 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE;
59 virtual int RemoveAllDownloads() OVERRIDE; 59 virtual int RemoveAllDownloads() OVERRIDE;
60 virtual void DownloadUrl(const GURL& url, 60 virtual void DownloadUrl(
61 const GURL& referrer, 61 scoped_ptr<content::DownloadUrlParameters> params) OVERRIDE;
62 const std::string& referrer_encoding,
63 bool prefer_cache,
64 int64 post_id,
65 const content::DownloadSaveInfo& save_info,
66 content::WebContents* web_contents,
67 const OnStartedCallback& callback) OVERRIDE;
68 virtual void AddObserver(Observer* observer) OVERRIDE; 62 virtual void AddObserver(Observer* observer) OVERRIDE;
69 virtual void RemoveObserver(Observer* observer) OVERRIDE; 63 virtual void RemoveObserver(Observer* observer) OVERRIDE;
70 virtual void OnPersistentStoreQueryComplete( 64 virtual void OnPersistentStoreQueryComplete(
71 std::vector<content::DownloadPersistentStoreInfo>* entries) OVERRIDE; 65 std::vector<content::DownloadPersistentStoreInfo>* entries) OVERRIDE;
72 virtual void OnItemAddedToPersistentStore(int32 download_id, 66 virtual void OnItemAddedToPersistentStore(int32 download_id,
73 int64 db_handle) OVERRIDE; 67 int64 db_handle) OVERRIDE;
74 virtual int InProgressCount() const OVERRIDE; 68 virtual int InProgressCount() const OVERRIDE;
75 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; 69 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
76 virtual FilePath LastDownloadPath() OVERRIDE; 70 virtual FilePath LastDownloadPath() OVERRIDE;
77 virtual net::BoundNetLog CreateDownloadItem( 71 virtual net::BoundNetLog CreateDownloadItem(
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 239
246 // Allows an embedder to control behavior. Guaranteed to outlive this object. 240 // Allows an embedder to control behavior. Guaranteed to outlive this object.
247 content::DownloadManagerDelegate* delegate_; 241 content::DownloadManagerDelegate* delegate_;
248 242
249 net::NetLog* net_log_; 243 net::NetLog* net_log_;
250 244
251 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 245 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
252 }; 246 };
253 247
254 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 248 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698