Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / renderer / pepper / pepper_flash_font_file_host.h
blob272ed6c64f820cdd2db30efe894e00327423988f
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_FONT_FILE_HOST_H_
6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_FONT_FILE_HOST_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ppapi/c/private/pp_private_font_charset.h"
11 #include "ppapi/host/resource_host.h"
13 namespace content {
14 class RendererPpapiHost;
17 namespace ppapi {
18 namespace proxy {
19 struct SerializedFontDescription;
23 class PepperFlashFontFileHost : public ppapi::host::ResourceHost {
24 public:
25 PepperFlashFontFileHost(
26 content::RendererPpapiHost* host,
27 PP_Instance instance,
28 PP_Resource resource,
29 const ppapi::proxy::SerializedFontDescription& description,
30 PP_PrivateFontCharset charset);
31 virtual ~PepperFlashFontFileHost();
33 virtual int32_t OnResourceMessageReceived(
34 const IPC::Message& msg,
35 ppapi::host::HostMessageContext* context) OVERRIDE;
37 private:
38 int32_t OnGetFontTable(ppapi::host::HostMessageContext* context,
39 uint32_t table);
41 // Non-owning pointer.
42 content::RendererPpapiHost* renderer_ppapi_host_;
43 // Only valid on Linux.
44 int fd_;
46 DISALLOW_COPY_AND_ASSIGN(PepperFlashFontFileHost);
49 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_FONT_FILE_HOST_H_