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

Unified Diff: ppapi/proxy/serialized_flash_menu.h

Issue 6432001: Implement proxy for FlashMenu and Run/QuitMessageLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle NULL menus more gracefully Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_testing_proxy.cc ('k') | ppapi/proxy/serialized_flash_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/serialized_flash_menu.h
diff --git a/ppapi/proxy/serialized_flash_menu.h b/ppapi/proxy/serialized_flash_menu.h
new file mode 100644
index 0000000000000000000000000000000000000000..fb72922123e719896372b1aaa11609270cb326a0
--- /dev/null
+++ b/ppapi/proxy/serialized_flash_menu.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_
+#define PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_
+
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/scoped_ptr.h"
+
+struct PP_Flash_Menu;
+
+namespace IPC {
+class Message;
+}
+
+namespace pp {
+namespace proxy {
+
+class SerializedFlashMenu {
+ public:
+ SerializedFlashMenu();
+ ~SerializedFlashMenu();
+
+ bool SetPPMenu(const PP_Flash_Menu* menu);
+
+ const PP_Flash_Menu* pp_menu() const { return pp_menu_; }
+
+ void WriteToMessage(IPC::Message* m) const;
+ bool ReadFromMessage(const IPC::Message* m, void** iter);
+
+ private:
+ const PP_Flash_Menu* pp_menu_;
+ bool own_menu_;
+ DISALLOW_COPY_AND_ASSIGN(SerializedFlashMenu);
+};
+
+} // namespace proxy
+} // namespace pp
+
+#endif // PPAPI_PROXY_SERIALIZED_FLASH_MENU_H_
« no previous file with comments | « ppapi/proxy/ppb_testing_proxy.cc ('k') | ppapi/proxy/serialized_flash_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698