| Index: chrome/renderer/pepper/pepper_printing_renderer_host.h
|
| diff --git a/chrome/renderer/pepper/pepper_printing_renderer_host.h b/chrome/renderer/pepper/pepper_printing_renderer_host.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7ff7e24bb23880c80549a801949dcfecf092b134
|
| --- /dev/null
|
| +++ b/chrome/renderer/pepper/pepper_printing_renderer_host.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
|
| +#define CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "ppapi/host/resource_host.h"
|
| +
|
| +struct PP_PrintPresetOptions_Dev;
|
| +
|
| +namespace content {
|
| +class RendererPpapiHost;
|
| +}
|
| +
|
| +namespace ppapi {
|
| +namespace host {
|
| +struct HostMessageContext;
|
| +}
|
| +}
|
| +
|
| +class PepperPrintingRendererHost : public ppapi::host::ResourceHost {
|
| + public:
|
| + PepperPrintingRendererHost(content::RendererPpapiHost* host,
|
| + PP_Instance instance,
|
| + PP_Resource resource);
|
| + virtual ~PepperPrintingRendererHost();
|
| +
|
| + virtual int32_t OnResourceMessageReceived(
|
| + const IPC::Message& msg,
|
| + ppapi::host::HostMessageContext* context) OVERRIDE;
|
| +
|
| + private:
|
| + int32_t OnHostMsgSetPrintPresetOptionsFromDocument(
|
| + ppapi::host::HostMessageContext* context,
|
| + PP_PrintPresetOptions_Dev& print_options);
|
| +
|
| + content::RendererPpapiHost* host_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(PepperPrintingRendererHost);
|
| +};
|
| +
|
| +#endif // CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
|
|
|