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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.h

Issue 8135017: Refactor downloads into a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated latest rounds of comments from John. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/off_the_record_profile_impl.h
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.h b/chrome/browser/profiles/off_the_record_profile_impl.h
index 032d451e79af8d61138a7f9886beb3a85ff8f288..7f5d443c1d040732b17606d07c87d3bdab555593 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.h
+++ b/chrome/browser/profiles/off_the_record_profile_impl.h
@@ -8,7 +8,6 @@
#include <string>
-#include "chrome/browser/download/chrome_download_manager_delegate.h"
#include "chrome/browser/profiles/off_the_record_profile_io_data.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_list.h"
@@ -66,7 +65,6 @@ class OffTheRecordProfileImpl : public Profile,
virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE;
virtual DownloadManager* GetDownloadManager() OVERRIDE;
- virtual bool HasCreatedDownloadManager() const OVERRIDE;
virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
@@ -136,9 +134,6 @@ class OffTheRecordProfileImpl : public Profile,
const NotificationDetails& details) OVERRIDE;
private:
- virtual void SetDownloadManagerDelegate(
- ChromeDownloadManagerDelegate* delegate) OVERRIDE;
-
void CreateQuotaManagerAndClients();
NotificationRegistrar registrar_;
@@ -153,13 +148,6 @@ class OffTheRecordProfileImpl : public Profile,
OffTheRecordProfileIOData::Handle io_data_;
- // Used so that Chrome code can influence how content module's DownloadManager
- // functions.
- scoped_refptr<ChromeDownloadManagerDelegate> download_manager_delegate_;
-
- // The download manager that only stores downloaded items in memory.
- scoped_refptr<DownloadManager> download_manager_;
-
// We use a non-persistent content settings map for OTR.
scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
« no previous file with comments | « chrome/browser/extensions/extension_downloads_api.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698