Index: chrome/renderer/pepper/pepper_flash_font_file_host.h |
diff --git a/chrome/renderer/pepper/pepper_flash_font_file_host.h b/chrome/renderer/pepper/pepper_flash_font_file_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ea884aafa5a9cefe6ef4c108f1cf1b346fe0530 |
--- /dev/null |
+++ b/chrome/renderer/pepper/pepper_flash_font_file_host.h |
@@ -0,0 +1,53 @@ |
+// Copyright (c) 2012 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_FLASH_FONT_FILE_HOST_H_ |
+#define CHROME_RENDERER_PEPPER_PEPPER_FLASH_FONT_FILE_HOST_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "ppapi/c/private/pp_private_font_charset.h" |
+#include "ppapi/host/resource_host.h" |
+ |
+namespace content { |
+class RendererPpapiHost; |
+} |
+ |
+namespace ppapi { |
+namespace proxy { |
+struct SerializedFontDescription; |
+} |
+} |
+ |
+namespace chrome { |
+ |
+class PepperFlashFontFileHost : public ppapi::host::ResourceHost { |
+ public: |
+ PepperFlashFontFileHost( |
+ content::RendererPpapiHost* host, |
+ PP_Instance instance, |
+ PP_Resource resource, |
+ const ppapi::proxy::SerializedFontDescription& description, |
+ PP_PrivateFontCharset charset); |
+ virtual ~PepperFlashFontFileHost(); |
+ |
+ virtual int32_t OnResourceMessageReceived( |
+ const IPC::Message& msg, |
+ ppapi::host::HostMessageContext* context) OVERRIDE; |
+ |
+ private: |
+ int32_t OnMsgGetFontTable(ppapi::host::HostMessageContext* context, |
+ uint32_t table); |
+ |
+ // Non-owning pointer. |
+ content::RendererPpapiHost* renderer_ppapi_host_; |
+ // Only valid on Linux. |
+ int fd_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PepperFlashFontFileHost); |
+}; |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_FONT_FILE_HOST_H_ |