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

Side by Side Diff: content/public/browser/download_manager.h

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) 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 | « content/public/browser/browser_thread.h ('k') | no next file » | 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 // The DownloadManager object manages the process of downloading, including 5 // The DownloadManager object manages the process of downloading, including
6 // updates to the history system and providing the information for displaying 6 // updates to the history system and providing the information for displaying
7 // the downloads view in the Destinations tab. There is one DownloadManager per 7 // the downloads view in the Destinations tab. There is one DownloadManager per
8 // active browser context in Chrome. 8 // active browser context in Chrome.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 16 matching lines...) Expand all
27 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 27 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
28 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 28 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
29 #pragma once 29 #pragma once
30 30
31 #include <string> 31 #include <string>
32 #include <vector> 32 #include <vector>
33 33
34 #include "base/basictypes.h" 34 #include "base/basictypes.h"
35 #include "base/file_path.h" 35 #include "base/file_path.h"
36 #include "base/gtest_prod_util.h" 36 #include "base/gtest_prod_util.h"
37 #include "base/message_loop_helpers.h"
37 #include "base/time.h" 38 #include "base/time.h"
38 #include "content/browser/download/download_id.h" 39 #include "content/browser/download/download_id.h"
39 #include "content/browser/download/interrupt_reasons.h" 40 #include "content/browser/download/interrupt_reasons.h"
40 #include "content/public/browser/download_item.h" 41 #include "content/public/browser/download_item.h"
41 #include "content/public/browser/browser_thread.h" 42 #include "content/public/browser/browser_thread.h"
42 #include "net/base/net_errors.h" 43 #include "net/base/net_errors.h"
43 44
44 class DownloadFileManager; 45 class DownloadFileManager;
45 class DownloadManagerTest; 46 class DownloadManagerTest;
46 class DownloadRequestHandle; 47 class DownloadRequestHandle;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 virtual void SetFileManager(DownloadFileManager* file_manager) = 0; 257 virtual void SetFileManager(DownloadFileManager* file_manager) = 0;
257 258
258 private: 259 private:
259 // For testing. 260 // For testing.
260 friend class ::DownloadManagerTest; 261 friend class ::DownloadManagerTest;
261 262
262 friend class base::RefCountedThreadSafe< 263 friend class base::RefCountedThreadSafe<
263 DownloadManager, content::BrowserThread::DeleteOnUIThread>; 264 DownloadManager, content::BrowserThread::DeleteOnUIThread>;
264 friend struct content::BrowserThread::DeleteOnThread< 265 friend struct content::BrowserThread::DeleteOnThread<
265 content::BrowserThread::UI>; 266 content::BrowserThread::UI>;
266 friend class DeleteTask<DownloadManager>; 267 friend class base::DeleteHelper<DownloadManager>;
267 }; 268 };
268 269
269 } // namespace content 270 } // namespace content
270 271
271 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 272 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698