OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ |
6 #define PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ppapi/shared_impl/ppapi_shared_export.h" | 10 #include "ppapi/shared_impl/ppapi_shared_export.h" |
11 #include "ppapi/thunk/ppb_flash_api.h" | 11 #include "ppapi/thunk/ppb_flash_api.h" |
12 | 12 |
13 namespace ppapi { | 13 namespace ppapi { |
14 | 14 |
15 class PPAPI_SHARED_EXPORT PPB_Flash_Shared : public thunk::PPB_Flash_API { | 15 class PPAPI_SHARED_EXPORT PPB_Flash_Shared : public thunk::PPB_Flash_API { |
16 public: | 16 public: |
17 PPB_Flash_Shared(); | 17 PPB_Flash_Shared(); |
18 virtual ~PPB_Flash_Shared(); | 18 virtual ~PPB_Flash_Shared(); |
19 | 19 |
20 // Shared implementation of PPB_Flash_API. | 20 // Shared implementation of PPB_Flash_API. |
21 virtual void FreeDirContents(PP_Instance instance, | 21 virtual void FreeDirContents(PP_Instance instance, |
22 PP_DirContents_Dev* contents) OVERRIDE; | 22 PP_DirContents_Dev* contents) OVERRIDE; |
23 | 23 |
24 protected: | |
25 static bool IsValidClipboardType(PP_Flash_Clipboard_Type clipboard_type); | |
26 static bool IsValidClipboardFormat(PP_Flash_Clipboard_Format format); | |
27 | |
28 private: | 24 private: |
29 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Shared); | 25 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Shared); |
30 }; | 26 }; |
31 | 27 |
32 } // namespace ppapi | 28 } // namespace ppapi |
33 | 29 |
34 #endif // PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ | 30 #endif // PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ |
OLD | NEW |