From e14f32db8374bec4dab395ecab3dced873283925 Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Wed, 3 Jul 2013 20:53:38 +0200 Subject: Add support for file and data url scheme. Local file and data url support can simply be added by registering the appropriate ProtocolHandlers. Displaying the contents of a directory is slightly more complex. This requires access to some html resource files that can be used to list the contents in rows. For Chromium such resource files are usually contained in a .pak file which is shipped with the binary. Since deploying additional files is very complicated for Qt, we want to use the Qt Resource System to bundle .pak files. Therefore this patch adds handling of rcc content generated from a .qrc file to our gyp_generator.prf. Further it replaces the regular ResourceBundle implementation with a Qt specific one. And it also implements a DataPackQt class that allows using DataPack instances with data from a QByteArray and therefore from the Qt Resource System. Change-Id: Ic41e34fbd9aec8596cbc85666a762ecdaa604edc Reviewed-by: Andras Becsi --- lib/url_request_context_getter_qt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/url_request_context_getter_qt.h') diff --git a/lib/url_request_context_getter_qt.h b/lib/url_request_context_getter_qt.h index bd9bae723..4ffc57a66 100644 --- a/lib/url_request_context_getter_qt.h +++ b/lib/url_request_context_getter_qt.h @@ -47,6 +47,8 @@ #include "base/memory/scoped_ptr.h" #include "base/single_thread_task_runner.h" #include "net/url_request/url_request_context_storage.h" +#include "net/url_request/url_request_job_factory_impl.h" +#include "content/public/common/url_constants.h" namespace net { class HostResolver; @@ -73,6 +75,7 @@ private: scoped_ptr m_urlRequestContext; scoped_ptr m_networkDelegate; scoped_ptr m_storage; + scoped_ptr m_jobFactory; }; #endif // URL_REQUEST_CONTEXT_GETTER_QT_H -- cgit v1.2.3