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

Unified Diff: chrome/browser/chrome_plugin_message_filter.h

Issue 7036025: Get rid of chrome dependencies from PluginProcessHost by moving dispatching of chrome specific me... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chrome_plugin_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_plugin_message_filter.h
===================================================================
--- chrome/browser/chrome_plugin_message_filter.h (revision 0)
+++ chrome/browser/chrome_plugin_message_filter.h (revision 0)
@@ -0,0 +1,42 @@
+// Copyright (c) 2011 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_BROWSER_CHROME_PLUGIN_MESSAGE_FILTER_H_
+#define CHROME_BROWSER_CHROME_PLUGIN_MESSAGE_FILTER_H_
+#pragma once
+
+#include "ipc/ipc_channel_proxy.h"
+#include "ui/gfx/native_widget_types.h"
+
+class PluginProcessHost;
+
+// This class filters out incoming Chrome-specific IPC messages for the plugin
+// process on the IPC thread.
+class ChromePluginMessageFilter : public IPC::ChannelProxy::MessageFilter,
+ public IPC::Message::Sender {
+ public:
+ explicit ChromePluginMessageFilter(PluginProcessHost* process);
+
+ // BrowserMessageFilter methods:
+ virtual bool OnMessageReceived(const IPC::Message& message);
+
+ // IPC::Message::Sender methods:
+ virtual bool Send(IPC::Message* message);
+
+ private:
+ virtual ~ChromePluginMessageFilter();
+
+#if defined(OS_WIN)
+ void OnDownloadUrl(const std::string& url,
+ int source_child_unique_id,
+ gfx::NativeWindow caller_window);
+#endif
+ void OnGetPluginFinderUrl(std::string* plugin_finder_url);
+
+ PluginProcessHost* process_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromePluginMessageFilter);
+};
+
+#endif // CHROME_BROWSER_CHROME_PLUGIN_MESSAGE_FILTER_H_
Property changes on: chrome\browser\chrome_plugin_message_filter.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chrome_plugin_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698