#ifndef PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_
#define PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_
#include "ppapi/proxy/connection.h"
#include "ppapi/proxy/plugin_resource.h"
#include "ppapi/thunk/ppb_browser_font_singleton_api.h"
namespace ppapi {
namespace proxy {
class BrowserFontSingletonResource
: public PluginResource,
public thunk::PPB_BrowserFont_Singleton_API {
public:
BrowserFontSingletonResource(Connection connection, PP_Instance instance);
virtual ~BrowserFontSingletonResource();
virtual thunk::PPB_BrowserFont_Singleton_API*
AsPPB_BrowserFont_Singleton_API() OVERRIDE;
virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE;
private:
std::string families_;
DISALLOW_COPY_AND_ASSIGN(BrowserFontSingletonResource);
};
}
}
#endif