Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / renderer / pepper / pepper_flash_font_file_host.h
blob02bb30f315fd371f0e917726eb84b93b43010f30
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 #if defined(OS_LINUX) || defined(OS_OPENBSD)
14 #include "base/files/scoped_file.h"
15 #endif
17 namespace content {
18 class RendererPpapiHost;
21 namespace ppapi {
22 namespace proxy {
23 struct SerializedFontDescription;
27 class PepperFlashFontFileHost : public ppapi::host::ResourceHost {
28 public:
29 PepperFlashFontFileHost(
30 content::RendererPpapiHost* host,
31 PP_Instance instance,
32 PP_Resource resource,
33 const ppapi::proxy::SerializedFontDescription& description,
34 PP_PrivateFontCharset charset);
35 ~PepperFlashFontFileHost() override;
37 int32_t OnResourceMessageReceived(
38 const IPC::Message& msg,
39 ppapi::host::HostMessageContext* context) override;
41 private:
42 int32_t OnGetFontTable(ppapi::host::HostMessageContext* context,
43 uint32_t table);
45 #if defined(OS_LINUX) || defined(OS_OPENBSD)
46 base::ScopedFD fd_;
47 #endif
49 DISALLOW_COPY_AND_ASSIGN(PepperFlashFontFileHost);
52 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_FONT_FILE_HOST_H_