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

Side by Side Diff: chrome/browser/download/download_manager.h

Issue 258008: Move initialization of ChromeURLRequestContexts to the IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again, just in case Created 11 years, 2 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 | « chrome/browser/download/download_file.cc ('k') | chrome/browser/download/download_manager.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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 profile in Chrome. 8 // active profile in Chrome.
9 // 9 //
10 // Each download is represented by a DownloadItem, and all DownloadItems 10 // Each download is represented by a DownloadItem, and all DownloadItems
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "chrome/common/pref_member.h" 56 #include "chrome/common/pref_member.h"
57 57
58 class DownloadFileManager; 58 class DownloadFileManager;
59 class DownloadItemView; 59 class DownloadItemView;
60 class DownloadManager; 60 class DownloadManager;
61 class GURL; 61 class GURL;
62 class MessageLoop; 62 class MessageLoop;
63 class PrefService; 63 class PrefService;
64 class Profile; 64 class Profile;
65 class ResourceDispatcherHost; 65 class ResourceDispatcherHost;
66 class URLRequestContext; 66 class URLRequestContextGetter;
67 class TabContents; 67 class TabContents;
68 68
69 namespace base { 69 namespace base {
70 class Thread; 70 class Thread;
71 } 71 }
72 72
73 // DownloadItem ---------------------------------------------------------------- 73 // DownloadItem ----------------------------------------------------------------
74 74
75 // One DownloadItem per download. This is the model class that stores all the 75 // One DownloadItem per download. This is the model class that stores all the
76 // state for a download. Multiple views, such as a tab's download shelf and the 76 // state for a download. Multiple views, such as a tab's download shelf and the
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 DownloadMap dangerous_finished_; 578 DownloadMap dangerous_finished_;
579 579
580 // True if the download manager has been initialized and requires a shutdown. 580 // True if the download manager has been initialized and requires a shutdown.
581 bool shutdown_needed_; 581 bool shutdown_needed_;
582 582
583 // Observers that want to be notified of changes to the set of downloads. 583 // Observers that want to be notified of changes to the set of downloads.
584 ObserverList<Observer> observers_; 584 ObserverList<Observer> observers_;
585 585
586 // The current active profile. 586 // The current active profile.
587 Profile* profile_; 587 Profile* profile_;
588 scoped_refptr<URLRequestContext> request_context_; 588 scoped_refptr<URLRequestContextGetter> request_context_getter_;
589 589
590 // Used for history service request management. 590 // Used for history service request management.
591 CancelableRequestConsumerTSimple<Observer*> cancelable_consumer_; 591 CancelableRequestConsumerTSimple<Observer*> cancelable_consumer_;
592 592
593 // Non-owning pointer for handling file writing on the download_thread_. 593 // Non-owning pointer for handling file writing on the download_thread_.
594 DownloadFileManager* file_manager_; 594 DownloadFileManager* file_manager_;
595 595
596 // A pointer to the main UI loop. 596 // A pointer to the main UI loop.
597 MessageLoop* ui_loop_; 597 MessageLoop* ui_loop_;
598 598
(...skipping 24 matching lines...) Expand all
623 PendingFinishedMap pending_finished_downloads_; 623 PendingFinishedMap pending_finished_downloads_;
624 624
625 // The "Save As" dialog box used to ask the user where a file should be 625 // The "Save As" dialog box used to ask the user where a file should be
626 // saved. 626 // saved.
627 scoped_refptr<SelectFileDialog> select_file_dialog_; 627 scoped_refptr<SelectFileDialog> select_file_dialog_;
628 628
629 DISALLOW_COPY_AND_ASSIGN(DownloadManager); 629 DISALLOW_COPY_AND_ASSIGN(DownloadManager);
630 }; 630 };
631 631
632 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ 632 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_file.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698