Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: ppapi/proxy/serialized_flash_menu.h

Issue 1149113006: Move Pickle to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/proxy/resource_message_params.h ('k') | ppapi/proxy/serialized_handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/basictypes.h" 11 #include "base/basictypes.h"
12 #include "ppapi/proxy/ppapi_proxy_export.h" 12 #include "ppapi/proxy/ppapi_proxy_export.h"
13 13
14 namespace base {
14 class PickleIterator; 15 class PickleIterator;
16 }
15 17
16 struct PP_Flash_Menu; 18 struct PP_Flash_Menu;
17 19
18 namespace IPC { 20 namespace IPC {
19 class Message; 21 class Message;
20 } 22 }
21 23
22 namespace ppapi { 24 namespace ppapi {
23 namespace proxy { 25 namespace proxy {
24 26
25 class PPAPI_PROXY_EXPORT SerializedFlashMenu { 27 class PPAPI_PROXY_EXPORT SerializedFlashMenu {
26 public: 28 public:
27 SerializedFlashMenu(); 29 SerializedFlashMenu();
28 ~SerializedFlashMenu(); 30 ~SerializedFlashMenu();
29 31
30 bool SetPPMenu(const PP_Flash_Menu* menu); 32 bool SetPPMenu(const PP_Flash_Menu* menu);
31 33
32 const PP_Flash_Menu* pp_menu() const { return pp_menu_; } 34 const PP_Flash_Menu* pp_menu() const { return pp_menu_; }
33 35
34 void WriteToMessage(IPC::Message* m) const; 36 void WriteToMessage(IPC::Message* m) const;
35 bool ReadFromMessage(const IPC::Message* m, PickleIterator* iter); 37 bool ReadFromMessage(const IPC::Message* m, base::PickleIterator* iter);
36 38
37 private: 39 private:
38 const PP_Flash_Menu* pp_menu_; 40 const PP_Flash_Menu* pp_menu_;
39 bool own_menu_; 41 bool own_menu_;
40 DISALLOW_COPY_AND_ASSIGN(SerializedFlashMenu); 42 DISALLOW_COPY_AND_ASSIGN(SerializedFlashMenu);
41 }; 43 };
42 44
43 } // namespace proxy 45 } // namespace proxy
44 } // namespace ppapi 46 } // namespace ppapi
45 47
46 #endif // PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_ 48 #endif // PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_message_params.h ('k') | ppapi/proxy/serialized_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698