| 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_PROXY_SERIALIZED_FLASH_MENU_H_ | 5 #ifndef PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_ |
| 6 #define PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_ | 6 #define PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ppapi/proxy/ppapi_proxy_export.h" | 12 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class Pickle; |
| 15 class PickleIterator; | 16 class PickleIterator; |
| 16 } | 17 } |
| 17 | 18 |
| 18 struct PP_Flash_Menu; | 19 struct PP_Flash_Menu; |
| 19 | 20 |
| 20 namespace IPC { | 21 namespace IPC { |
| 21 class Message; | 22 class Message; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace ppapi { | 25 namespace ppapi { |
| 25 namespace proxy { | 26 namespace proxy { |
| 26 | 27 |
| 27 class PPAPI_PROXY_EXPORT SerializedFlashMenu { | 28 class PPAPI_PROXY_EXPORT SerializedFlashMenu { |
| 28 public: | 29 public: |
| 29 SerializedFlashMenu(); | 30 SerializedFlashMenu(); |
| 30 ~SerializedFlashMenu(); | 31 ~SerializedFlashMenu(); |
| 31 | 32 |
| 32 bool SetPPMenu(const PP_Flash_Menu* menu); | 33 bool SetPPMenu(const PP_Flash_Menu* menu); |
| 33 | 34 |
| 34 const PP_Flash_Menu* pp_menu() const { return pp_menu_; } | 35 const PP_Flash_Menu* pp_menu() const { return pp_menu_; } |
| 35 | 36 |
| 36 void WriteToMessage(IPC::Message* m) const; | 37 void WriteToMessage(base::Pickle* m) const; |
| 37 bool ReadFromMessage(const IPC::Message* m, base::PickleIterator* iter); | 38 bool ReadFromMessage(const base::Pickle* m, base::PickleIterator* iter); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 const PP_Flash_Menu* pp_menu_; | 41 const PP_Flash_Menu* pp_menu_; |
| 41 bool own_menu_; | 42 bool own_menu_; |
| 42 DISALLOW_COPY_AND_ASSIGN(SerializedFlashMenu); | 43 DISALLOW_COPY_AND_ASSIGN(SerializedFlashMenu); |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } // namespace proxy | 46 } // namespace proxy |
| 46 } // namespace ppapi | 47 } // namespace ppapi |
| 47 | 48 |
| 48 #endif // PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_ | 49 #endif // PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_ |
| OLD | NEW |