]> git.saurik.com Git - wxWidgets.git/blob - src/common/webviewfshandler.cpp
Update OpenVMS compile support
[wxWidgets.git] / src / common / webviewfshandler.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewfshandler.cpp
3 // Purpose: Custom webview handler for virtual file system
4 // Author: Nick Matthews
5 // Copyright: (c) 2012 Steven Lamerton
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 // For compilers that support precompilation, includes "wx.h".
10 #include "wx/wxprec.h"
11
12 #if wxUSE_WEBVIEW
13
14 #if defined(__BORLANDC__)
15 #pragma hdrstop
16 #endif
17
18 #include "wx/webviewfshandler.h"
19 #include "wx/filesys.h"
20
21 wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) :
22 wxWebViewHandler(scheme)
23 {
24 m_fileSystem = new wxFileSystem();
25 }
26
27 wxWebViewFSHandler::~wxWebViewFSHandler()
28 {
29 wxDELETE(m_fileSystem);
30 }
31
32 wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri)
33 {
34 return m_fileSystem->OpenFile(uri);
35 }
36
37 #endif // wxUSE_WEBVIEW