Chromium Code Reviews| 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_ |