| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_PDF_HOST_H_ | 5 #ifndef COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
| 6 #define CHROME_RENDERER_PEPPER_PEPPER_PDF_HOST_H_ | 6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
| 14 #include "ppapi/c/ppb_image_data.h" | 14 #include "ppapi/c/ppb_image_data.h" |
| 15 #include "ppapi/c/private/ppb_pdf.h" | 15 #include "ppapi/c/private/ppb_pdf.h" |
| 16 #include "ppapi/host/resource_host.h" | 16 #include "ppapi/host/resource_host.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 27 namespace ppapi { | 27 namespace ppapi { |
| 28 class HostResource; | 28 class HostResource; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace ppapi { | 31 namespace ppapi { |
| 32 namespace host { | 32 namespace host { |
| 33 struct HostMessageContext; | 33 struct HostMessageContext; |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace pdf { |
| 38 |
| 37 class PepperPDFHost : public ppapi::host::ResourceHost { | 39 class PepperPDFHost : public ppapi::host::ResourceHost { |
| 38 public: | 40 public: |
| 39 PepperPDFHost(content::RendererPpapiHost* host, | 41 PepperPDFHost(content::RendererPpapiHost* host, |
| 40 PP_Instance instance, | 42 PP_Instance instance, |
| 41 PP_Resource resource); | 43 PP_Resource resource); |
| 42 virtual ~PepperPDFHost(); | 44 virtual ~PepperPDFHost(); |
| 43 | 45 |
| 44 virtual int32_t OnResourceMessageReceived( | 46 virtual int32_t OnResourceMessageReceived( |
| 45 const IPC::Message& msg, | 47 const IPC::Message& msg, |
| 46 ppapi::host::HostMessageContext* context) OVERRIDE; | 48 ppapi::host::HostMessageContext* context) OVERRIDE; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 75 ppapi::HostResource* result, | 77 ppapi::HostResource* result, |
| 76 PP_ImageDataDesc* out_image_data_desc, | 78 PP_ImageDataDesc* out_image_data_desc, |
| 77 IPC::PlatformFileForTransit* out_image_handle, | 79 IPC::PlatformFileForTransit* out_image_handle, |
| 78 uint32_t* out_byte_count); | 80 uint32_t* out_byte_count); |
| 79 | 81 |
| 80 content::RendererPpapiHost* host_; | 82 content::RendererPpapiHost* host_; |
| 81 | 83 |
| 82 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); | 84 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); |
| 83 }; | 85 }; |
| 84 | 86 |
| 85 #endif // CHROME_RENDERER_PEPPER_PEPPER_PDF_HOST_H_ | 87 } // namespace pdf |
| 88 |
| 89 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
| OLD | NEW |