FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
BrowserPlugin.cpp
1 /**********************************************************\
2 Original Author: Richard Bateman (taxilian)
3 
4 Created: Oct 19, 2009
5 License: Dual license model; choose one of two:
6  New BSD License
7  http://www.opensource.org/licenses/bsd-license.php
8  - or -
9  GNU Lesser General Public License, version 2.1
10  http://www.gnu.org/licenses/lgpl-2.1.html
11 
12 Copyright 2009 Richard Bateman, Firebreath development team
13 \**********************************************************/
14 
15 #include "BrowserPlugin.h"
16 #include "FactoryBase.h"
17 #include "PluginCore.h"
18 #include "precompiled_headers.h" // On windows, everything above this line in PCH
19 
20 using namespace FB;
21 
22 std::string BrowserPlugin::fileSystemPath;
23 
24 BrowserPlugin::BrowserPlugin(const std::string& mimetype) :
25  pluginMain(getFactoryInstance()->createPlugin(mimetype))
26 {
27 }
28 
29 BrowserPlugin::~BrowserPlugin()
30 {
31 }
32 
33 void BrowserPlugin::setFSPath(const std::string& path)
34 {
35  fileSystemPath = path;
36  pluginMain->setFSPath(path);
37 }
38