#ifndef PPAPI_PROXY_PRINTING_RESOURCE_H_
#define PPAPI_PROXY_PRINTING_RESOURCE_H_
#include "ppapi/proxy/connection.h"
#include "ppapi/proxy/plugin_resource.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
#include "ppapi/shared_impl/tracked_callback.h"
#include "ppapi/thunk/ppb_printing_api.h"
namespace ppapi {
namespace proxy {
class PPAPI_PROXY_EXPORT PrintingResource
: public PluginResource,
public NON_EXPORTED_BASE(thunk::PPB_Printing_API) {
public:
PrintingResource(Connection connection,
PP_Instance instance);
virtual ~PrintingResource();
virtual thunk::PPB_Printing_API* AsPPB_Printing_API() OVERRIDE;
virtual int32_t GetDefaultPrintSettings(
PP_PrintSettings_Dev* print_settings,
scoped_refptr<TrackedCallback> callback) OVERRIDE;
private:
void OnPluginMsgGetDefaultPrintSettingsReply(
PP_PrintSettings_Dev* settings_out,
scoped_refptr<TrackedCallback> callback,
const ResourceMessageReplyParams& params,
const PP_PrintSettings_Dev& settings);
DISALLOW_COPY_AND_ASSIGN(PrintingResource);
};
}
}
#endif