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. |
| 21 virtual void FreeDirContents(PP_Instance instance, |
| 22 PP_DirContents_Dev* contents) OVERRIDE; |
| 23 |
20 protected: | 24 protected: |
21 static bool IsValidClipboardType(PP_Flash_Clipboard_Type clipboard_type); | 25 static bool IsValidClipboardType(PP_Flash_Clipboard_Type clipboard_type); |
22 static bool IsValidClipboardFormat(PP_Flash_Clipboard_Format format); | 26 static bool IsValidClipboardFormat(PP_Flash_Clipboard_Format format); |
23 | 27 |
24 private: | 28 private: |
25 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Shared); | 29 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Shared); |
26 }; | 30 }; |
27 | 31 |
28 } // namespace ppapi | 32 } // namespace ppapi |
29 | 33 |
30 #endif // PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ | 34 #endif // PPAPI_SHARED_IMPL_PPB_FLASH_SHARED_H_ |
OLD | NEW |