| 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_
|
|
|