diff options
Diffstat (limited to 'src/core/url_request_context_getter_qt.cpp')
-rw-r--r-- | src/core/url_request_context_getter_qt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/url_request_context_getter_qt.cpp b/src/core/url_request_context_getter_qt.cpp index 99bf68b1c..933df845c 100644 --- a/src/core/url_request_context_getter_qt.cpp +++ b/src/core/url_request_context_getter_qt.cpp @@ -63,6 +63,9 @@ #include "net/url_request/file_protocol_handler.h" #include "network_delegate_qt.h" +#include "qrc_protocol_handler_qt.h" + +static const char kQrcSchemeQt[] = "qrc"; using content::BrowserThread; @@ -159,6 +162,7 @@ net::URLRequestContext *URLRequestContextGetterQt::GetURLRequestContext() m_jobFactory.reset(new net::URLRequestJobFactoryImpl()); m_jobFactory->SetProtocolHandler(chrome::kDataScheme, new net::DataProtocolHandler()); m_jobFactory->SetProtocolHandler(chrome::kFileScheme, new net::FileProtocolHandler()); + m_jobFactory->SetProtocolHandler(kQrcSchemeQt, new QrcProtocolHandlerQt()); m_urlRequestContext->set_job_factory(m_jobFactory.get()); } |