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

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

Issue 9639001: Move download interrupt reasons to content\public (the enum that's used by chrome). The rest keep i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 8 years, 9 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 27 matching lines...) Expand all
38 DownloadVector* result) OVERRIDE; 38 DownloadVector* result) OVERRIDE;
39 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; 39 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE;
40 virtual void StartDownload(int32 id) OVERRIDE; 40 virtual void StartDownload(int32 id) OVERRIDE;
41 virtual void UpdateDownload(int32 download_id, 41 virtual void UpdateDownload(int32 download_id,
42 int64 bytes_so_far, 42 int64 bytes_so_far,
43 int64 bytes_per_sec, 43 int64 bytes_per_sec,
44 const std::string& hash_state) OVERRIDE; 44 const std::string& hash_state) OVERRIDE;
45 virtual void OnResponseCompleted(int32 download_id, int64 size, 45 virtual void OnResponseCompleted(int32 download_id, int64 size,
46 const std::string& hash) OVERRIDE; 46 const std::string& hash) OVERRIDE;
47 virtual void CancelDownload(int32 download_id) OVERRIDE; 47 virtual void CancelDownload(int32 download_id) OVERRIDE;
48 virtual void OnDownloadInterrupted(int32 download_id, 48 virtual void OnDownloadInterrupted(
49 int64 size, 49 int32 download_id,
50 const std::string& hash_state, 50 int64 size,
51 InterruptReason reason) OVERRIDE; 51 const std::string& hash_state,
52 content::DownloadInterruptReason reason) OVERRIDE;
52 virtual void OnDownloadRenamedToFinalName(int download_id, 53 virtual void OnDownloadRenamedToFinalName(int download_id,
53 const FilePath& full_path, 54 const FilePath& full_path,
54 int uniquifier) OVERRIDE; 55 int uniquifier) OVERRIDE;
55 virtual int RemoveDownloadsBetween(base::Time remove_begin, 56 virtual int RemoveDownloadsBetween(base::Time remove_begin,
56 base::Time remove_end) OVERRIDE; 57 base::Time remove_end) OVERRIDE;
57 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; 58 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE;
58 virtual int RemoveAllDownloads() OVERRIDE; 59 virtual int RemoveAllDownloads() OVERRIDE;
59 virtual void DownloadUrl(const GURL& url, 60 virtual void DownloadUrl(const GURL& url,
60 const GURL& referrer, 61 const GURL& referrer,
61 const std::string& referrer_encoding, 62 const std::string& referrer_encoding,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. 248 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed.
248 // For debugging only. 249 // For debugging only.
249 int64 largest_db_handle_in_history_; 250 int64 largest_db_handle_in_history_;
250 251
251 net::NetLog* net_log_; 252 net::NetLog* net_log_;
252 253
253 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 254 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
254 }; 255 };
255 256
256 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 257 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl_unittest.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698