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

Unified Diff: ppapi/proxy/ppb_flash_message_loop_proxy.h

Issue 9188045: Introduce PPB_Flash_MessageLoop interface for Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use base::Callback instead of PP_CompletionCallback in RunFromHostProxy(). Created 8 years, 11 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/ppapi_messages.h ('k') | ppapi/proxy/ppb_flash_message_loop_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_flash_message_loop_proxy.h
diff --git a/ppapi/proxy/ppb_flash_message_loop_proxy.h b/ppapi/proxy/ppb_flash_message_loop_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..aaf33f9ec976ee4c8f0d13dbade51ebd79274e06
--- /dev/null
+++ b/ppapi/proxy/ppb_flash_message_loop_proxy.h
@@ -0,0 +1,52 @@
+// Copyright (c) 2012 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_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
+#define PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_resource.h"
+#include "ppapi/proxy/interface_proxy.h"
+
+namespace IPC {
+class Message;
+}
+
+namespace ppapi {
+
+class HostResource;
+
+namespace proxy {
+
+class PPB_Flash_MessageLoop_Proxy
+ : public InterfaceProxy,
+ public base::SupportsWeakPtr<PPB_Flash_MessageLoop_Proxy> {
+ public:
+ explicit PPB_Flash_MessageLoop_Proxy(Dispatcher* dispatcher);
+ virtual ~PPB_Flash_MessageLoop_Proxy();
+
+ static PP_Resource CreateProxyResource(PP_Instance instance);
+
+ // InterfaceProxy implementation.
+ virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
+
+ private:
+ void OnMsgCreate(PP_Instance instance, ppapi::HostResource* resource);
+ void OnMsgRun(const ppapi::HostResource& flash_message_loop,
+ IPC::Message* reply);
+ void OnMsgQuit(const ppapi::HostResource& flash_message_loop);
+
+ void WillQuitSoon(scoped_ptr<IPC::Message> reply_message, int32_t result);
+
+ DISALLOW_COPY_AND_ASSIGN(PPB_Flash_MessageLoop_Proxy);
+};
+
+} // namespace proxy
+} // namespace ppapi
+
+#endif // PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_flash_message_loop_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698