FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
NpapiBrowserHostAsyncWin.h
1 
2 /**********************************************************\
3 Original Author: Georg Fritzsche
4 
5 Created: March 1, 2010
6 License: Dual license model; choose one of two:
7  New BSD License
8  http://www.opensource.org/licenses/bsd-license.php
9  - or -
10  GNU Lesser General Public License, version 2.1
11  http://www.gnu.org/licenses/lgpl-2.1.html
12 
13 Copyright 2010 Georg Fritzsche, Firebreath development team
14 \**********************************************************/
15 
16 #pragma once
17 #ifndef H_NPAPIBROWSERHOSTASYNCWIN
18 #define H_NPAPIBROWSERHOSTASYNCWIN
19 
20 #include "NpapiBrowserHost.h"
21 #include <boost/scoped_ptr.hpp>
22 
23 namespace FB {
24  class WinMessageWindow;
25  namespace Npapi {
26  class NpapiBrowserHostAsyncWin : public NpapiBrowserHost
27  {
28  public:
29  NpapiBrowserHostAsyncWin(NpapiPluginModule *module, NPP npp);
30  virtual ~NpapiBrowserHostAsyncWin();
31 
32  virtual bool _scheduleAsyncCall(void (*func)(void*), void* userData) const;
33 
34  private:
35  boost::scoped_ptr<FB::WinMessageWindow> m_messageWin;
36  };
37  }
38 }
39 #endif
40