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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.h

Issue 7192016: chrome.experimental.downloads (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merged db_handle, id; onCreated, onErased Created 9 years, 5 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: content/browser/renderer_host/resource_dispatcher_host.h
diff --git a/content/browser/renderer_host/resource_dispatcher_host.h b/content/browser/renderer_host/resource_dispatcher_host.h
index 35f5106c3eacf7beaf95ae55fdc2d81b4d90d16b..4b30ef81549831405ef748b9a8b090090db4d436 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.h
+++ b/content/browser/renderer_host/resource_dispatcher_host.h
@@ -21,6 +21,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/timer.h"
+#include "chrome/browser/renderer_host/download_resource_handler.h"
#include "content/browser/renderer_host/resource_queue.h"
#include "content/common/child_process_info.h"
#include "content/common/content_notification_types.h"
@@ -77,6 +78,14 @@ class ResourceDispatcherHost : public net::URLRequest::Delegate {
// Initiates a download from the browser process (as opposed to a resource
// request from the renderer or another child process).
+ void BeginDownload(
+ net::URLRequest* request, // ownership is taken
+ const DownloadSaveInfo& save_info,
+ bool prompt_for_save_location,
+ DownloadResourceHandler::OnStartedCallback started_cb,
+ int child_id,
+ int route_id,
+ const content::ResourceContext& context);
void BeginDownload(const GURL& url,
const GURL& referrer,
const DownloadSaveInfo& save_info,
« no previous file with comments | « chrome/renderer/resources/renderer_extension_bindings.js ('k') | content/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698