Delete unused downloads page asset.
[chromium-blink-merge.git] / ppapi / proxy / serialized_flash_menu.h
blob8c1d7096067d355022958c881d5b5d5f7741f366
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
3 // found in the LICENSE file.
5 #ifndef PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_
6 #define PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "ppapi/proxy/ppapi_proxy_export.h"
14 namespace base {
15 class PickleIterator;
18 struct PP_Flash_Menu;
20 namespace IPC {
21 class Message;
24 namespace ppapi {
25 namespace proxy {
27 class PPAPI_PROXY_EXPORT SerializedFlashMenu {
28 public:
29 SerializedFlashMenu();
30 ~SerializedFlashMenu();
32 bool SetPPMenu(const PP_Flash_Menu* menu);
34 const PP_Flash_Menu* pp_menu() const { return pp_menu_; }
36 void WriteToMessage(IPC::Message* m) const;
37 bool ReadFromMessage(const IPC::Message* m, base::PickleIterator* iter);
39 private:
40 const PP_Flash_Menu* pp_menu_;
41 bool own_menu_;
42 DISALLOW_COPY_AND_ASSIGN(SerializedFlashMenu);
45 } // namespace proxy
46 } // namespace ppapi
48 #endif // PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_