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

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

Issue 9108024: Cleanup parameter passing issues in content/browser/download (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove fix for CID 102890 Created 8 years, 11 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
« no previous file with comments | « no previous file | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 "content/public/browser/download_manager.h" 10 #include "content/public/browser/download_manager.h"
(...skipping 29 matching lines...) Expand all
40 DownloadVector* result) OVERRIDE; 40 DownloadVector* result) OVERRIDE;
41 virtual void GetAllDownloads(const FilePath& dir_path, 41 virtual void GetAllDownloads(const FilePath& dir_path,
42 DownloadVector* result) OVERRIDE; 42 DownloadVector* result) OVERRIDE;
43 virtual void SearchDownloads(const string16& query, 43 virtual void SearchDownloads(const string16& query,
44 DownloadVector* result) OVERRIDE; 44 DownloadVector* result) OVERRIDE;
45 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; 45 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE;
46 virtual void StartDownload(int32 id) OVERRIDE; 46 virtual void StartDownload(int32 id) OVERRIDE;
47 virtual void UpdateDownload(int32 download_id, 47 virtual void UpdateDownload(int32 download_id,
48 int64 bytes_so_far, 48 int64 bytes_so_far,
49 int64 bytes_per_sec, 49 int64 bytes_per_sec,
50 std::string hash_state) OVERRIDE; 50 const std::string& hash_state) OVERRIDE;
51 virtual void OnResponseCompleted(int32 download_id, int64 size, 51 virtual void OnResponseCompleted(int32 download_id, int64 size,
52 const std::string& hash) OVERRIDE; 52 const std::string& hash) OVERRIDE;
53 virtual void CancelDownload(int32 download_id) OVERRIDE; 53 virtual void CancelDownload(int32 download_id) OVERRIDE;
54 virtual void OnDownloadInterrupted(int32 download_id, 54 virtual void OnDownloadInterrupted(int32 download_id,
55 int64 size, 55 int64 size,
56 std::string hash_state, 56 const std::string& hash_state,
57 InterruptReason reason) OVERRIDE; 57 InterruptReason reason) OVERRIDE;
58 virtual void OnDownloadRenamedToFinalName(int download_id, 58 virtual void OnDownloadRenamedToFinalName(int download_id,
59 const FilePath& full_path, 59 const FilePath& full_path,
60 int uniquifier) OVERRIDE; 60 int uniquifier) OVERRIDE;
61 virtual int RemoveDownloadsBetween(const base::Time remove_begin, 61 virtual int RemoveDownloadsBetween(const base::Time remove_begin,
62 const base::Time remove_end) OVERRIDE; 62 const base::Time remove_end) OVERRIDE;
63 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE; 63 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE;
64 virtual int RemoveAllDownloads() OVERRIDE; 64 virtual int RemoveAllDownloads() OVERRIDE;
65 virtual void DownloadUrl(const GURL& url, 65 virtual void DownloadUrl(const GURL& url,
66 const GURL& referrer, 66 const GURL& referrer,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 DownloadIdFactory* id_factory_; 270 DownloadIdFactory* id_factory_;
271 271
272 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. 272 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed.
273 // For debugging only. 273 // For debugging only.
274 int64 largest_db_handle_in_history_; 274 int64 largest_db_handle_in_history_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 276 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
277 }; 277 };
278 278
279 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 279 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698