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

Unified Diff: chrome/renderer/pepper/pepper_flash_renderer_message_filter.h

Issue 10803050: Hook up the PPB_Flash_Print interface to new host system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: chrome/renderer/pepper/pepper_flash_renderer_message_filter.h
diff --git a/chrome/renderer/pepper/pepper_flash_renderer_message_filter.h b/chrome/renderer/pepper/pepper_flash_renderer_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..09f7b84efe57abaea3d6a1d1097fd3d1c64a1575
--- /dev/null
+++ b/chrome/renderer/pepper/pepper_flash_renderer_message_filter.h
@@ -0,0 +1,37 @@
+// 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 CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_MESSAGE_FILTER_H_
+#define CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_MESSAGE_FILTER_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/host/instance_message_filter.h"
+
+namespace chrome {
+
+// Implements the backend for Flash-specific messages from a plugin process.
+class PepperFlashRendererMessageFilter
+ : public ppapi::host::InstanceMessageFilter {
+ public:
+ // This class is designed to be heap-allocated. It will attach itself to the
+ // given host and delete itself when the host is destroyed.
+ explicit PepperFlashRendererMessageFilter(ppapi::host::PpapiHost* host);
dmichael (off chromium) 2012/07/25 16:57:27 optional: It seems like this is following the same
+ virtual ~PepperFlashRendererMessageFilter();
+
+ // InstanceMessageFilter:
+ virtual void PpapiHostDestroyed(ppapi::host::PpapiHost* host) OVERRIDE;
+ virtual bool OnInstanceMessageReceived(const IPC::Message& msg) OVERRIDE;
+
+ private:
+ // Message handlers.
+ void OnHostMsgInvokePrinting(PP_Instance instance);
+
+ DISALLOW_COPY_AND_ASSIGN(PepperFlashRendererMessageFilter);
+};
+
+} // namespace chrome
+
+#endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698