OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_ |
| 6 #define CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "ppapi/host/resource_host.h" |
| 11 |
| 12 struct PP_PrintPresetOptions_Dev; |
| 13 |
| 14 namespace content { |
| 15 class RendererPpapiHost; |
| 16 } |
| 17 |
| 18 namespace ppapi { |
| 19 namespace host { |
| 20 struct HostMessageContext; |
| 21 } |
| 22 } |
| 23 |
| 24 class PepperPrintingRendererHost : public ppapi::host::ResourceHost { |
| 25 public: |
| 26 PepperPrintingRendererHost(content::RendererPpapiHost* host, |
| 27 PP_Instance instance, |
| 28 PP_Resource resource); |
| 29 virtual ~PepperPrintingRendererHost(); |
| 30 |
| 31 virtual int32_t OnResourceMessageReceived( |
| 32 const IPC::Message& msg, |
| 33 ppapi::host::HostMessageContext* context) OVERRIDE; |
| 34 |
| 35 private: |
| 36 int32_t OnHostMsgSetPrintPresetOptionsFromDocument( |
| 37 ppapi::host::HostMessageContext* context, |
| 38 PP_PrintPresetOptions_Dev& print_options); |
| 39 |
| 40 content::RendererPpapiHost* host_; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(PepperPrintingRendererHost); |
| 43 }; |
| 44 |
| 45 #endif // CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_ |
OLD | NEW |