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

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: with deps 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..3a39ae65dbb2118ad767a6c6146caa2906d3636a
--- /dev/null
+++ b/chrome/renderer/pepper/pepper_flash_renderer_message_filter.h
@@ -0,0 +1,36 @@
+// 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);
+ virtual ~PepperFlashRendererMessageFilter();
+
+ // InstanceMessageFilter:
+ 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