| 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_FLASH_CLIPBOARD_FORMAT_REGISTRY_H_ | 5 #ifndef PPAPI_SHARED_IMPL_FLASH_CLIPBOARD_FORMAT_REGISTRY_H_ |
| 6 #define PPAPI_SHARED_IMPL_FLASH_CLIPBOARD_FORMAT_REGISTRY_H_ | 6 #define PPAPI_SHARED_IMPL_FLASH_CLIPBOARD_FORMAT_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <string> | 11 #include <string> |
| 10 | 12 |
| 11 #include "base/basictypes.h" | 13 #include "base/macros.h" |
| 12 #include "ppapi/c/private/ppb_flash_clipboard.h" | 14 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 13 #include "ppapi/shared_impl/ppapi_shared_export.h" | 15 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 14 | 16 |
| 15 namespace ppapi { | 17 namespace ppapi { |
| 16 | 18 |
| 17 // This class manages custom clipboard formats that can be registered by a user | 19 // This class manages custom clipboard formats that can be registered by a user |
| 18 // of PPB_Flash_Clipboard. It is used by both the plugin and host side | 20 // of PPB_Flash_Clipboard. It is used by both the plugin and host side |
| 19 // of the proxy. The host side is the definitive source of which formats | 21 // of the proxy. The host side is the definitive source of which formats |
| 20 // have been registered but format registration is tracked on the plugin | 22 // have been registered but format registration is tracked on the plugin |
| 21 // side to better handle error cases. | 23 // side to better handle error cases. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // A map of custom format ID to format name. | 57 // A map of custom format ID to format name. |
| 56 typedef std::map<uint32_t, std::string> FormatMap; | 58 typedef std::map<uint32_t, std::string> FormatMap; |
| 57 FormatMap custom_formats_; | 59 FormatMap custom_formats_; |
| 58 | 60 |
| 59 DISALLOW_COPY_AND_ASSIGN(FlashClipboardFormatRegistry); | 61 DISALLOW_COPY_AND_ASSIGN(FlashClipboardFormatRegistry); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 } // ppapi | 64 } // ppapi |
| 63 | 65 |
| 64 #endif // PPAPI_SHARED_IMPL_FLASH_CLIPBOARD_FORMAT_REGISTRY_H_ | 66 #endif // PPAPI_SHARED_IMPL_FLASH_CLIPBOARD_FORMAT_REGISTRY_H_ |
| OLD | NEW |