summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/ppb_flash_shared.h
blob: dfd209da3d7730b769519ac4c39e7482c797590f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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 PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_
#define PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ppapi/shared_impl/ppapi_shared_export.h"
#include "ppapi/thunk/ppb_flash_api.h"

namespace ppapi {

class PPAPI_SHARED_EXPORT PPB_Flash_Shared : public thunk::PPB_Flash_API {
 public:
  PPB_Flash_Shared();
  virtual ~PPB_Flash_Shared();

  // Shared implementation of PPB_Flash_API.
  virtual void FreeDirContents(PP_Instance instance,
                               PP_DirContents_Dev* contents) OVERRIDE;

 protected:
  static bool IsValidClipboardType(PP_Flash_Clipboard_Type clipboard_type);
  static bool IsValidClipboardFormat(PP_Flash_Clipboard_Format format);

 private:
  DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Shared);
};

}  // namespace ppapi

#endif  // PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_