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

Unified Diff: chrome/browser/download/download_file.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/dom_ui/new_tab_page_sync_handler.cc ('k') | chrome/browser/download/download_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_file.h
===================================================================
--- chrome/browser/download/download_file.h (revision 29872)
+++ chrome/browser/download/download_file.h (working copy)
@@ -42,6 +42,7 @@
#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_
#include <map>
+#include <string>
#include <vector>
#include "app/gfx/native_widget_types.h"
@@ -60,7 +61,7 @@
class DownloadManager;
class MessageLoop;
class ResourceDispatcherHost;
-class URLRequestContext;
+class URLRequestContextGetter;
// DownloadBuffer --------------------------------------------------------------
@@ -189,16 +190,18 @@
// ResourceDispatcherHost on the IO thread.
void DownloadUrl(const GURL& url,
const GURL& referrer,
+ const std::string& referrer_charset,
int render_process_host_id,
int render_view_id,
- URLRequestContext* request_context);
+ URLRequestContextGetter* request_context_getter);
// Run on the IO thread to initiate the download of a URL.
void OnDownloadUrl(const GURL& url,
const GURL& referrer,
+ const std::string& referrer_charset,
int render_process_host_id,
int render_view_id,
- URLRequestContext* request_context);
+ URLRequestContextGetter* request_context_getter);
// Called on the UI thread to remove a download item or manager.
void RemoveDownloadManager(DownloadManager* manager);
« no previous file with comments | « chrome/browser/dom_ui/new_tab_page_sync_handler.cc ('k') | chrome/browser/download/download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698