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

Unified Diff: mojo/shell/url_request_context_getter.h

Issue 38303002: Enable Mojo to download from file URLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | « mojo/shell/network_delegate.cc ('k') | mojo/shell/url_request_context_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/url_request_context_getter.h
diff --git a/mojo/shell/url_request_context_getter.h b/mojo/shell/url_request_context_getter.h
index 67830e7c5c5e992e59ec714dbd7990d3f9c3c620..cc9125ddc66ca8bf628eab57bf5e05deeefc0fc4 100644
--- a/mojo/shell/url_request_context_getter.h
+++ b/mojo/shell/url_request_context_getter.h
@@ -8,6 +8,7 @@
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop_proxy.h"
+#include "net/base/network_delegate.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_context_storage.h"
@@ -19,7 +20,9 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
URLRequestContextGetter(
base::FilePath base_path,
base::SingleThreadTaskRunner* network_task_runner,
- base::MessageLoopProxy* cache_task_runner);
+ base::SingleThreadTaskRunner* file_task_runner,
+ base::MessageLoopProxy* cache_task_runner,
+ scoped_ptr<net::NetworkDelegate> network_delegate);
virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE;
virtual scoped_refptr<base::SingleThreadTaskRunner>
@@ -30,8 +33,10 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
private:
base::FilePath base_path_;
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
scoped_refptr<base::MessageLoopProxy> cache_task_runner_;
+ scoped_ptr<net::NetworkDelegate> network_delegate_;
scoped_ptr<net::NetLog> net_log_;
scoped_ptr<net::URLRequestContextStorage> storage_;
scoped_ptr<net::URLRequestContext> url_request_context_;
« no previous file with comments | « mojo/shell/network_delegate.cc ('k') | mojo/shell/url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698