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

Side by Side Diff: content/browser/plugin_process_host.h

Issue 24514003: Make BrowserMessageFilter not derive from IPC::ChannelProxy::MessageFilter. This allows us to hide … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <list> 10 #include <list>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void OnAppActivation(); 113 void OnAppActivation();
114 #endif 114 #endif
115 115
116 const WebPluginInfo& info() const { return info_; } 116 const WebPluginInfo& info() const { return info_; }
117 117
118 #if defined(OS_WIN) 118 #if defined(OS_WIN)
119 // Tracks plugin parent windows created on the browser UI thread. 119 // Tracks plugin parent windows created on the browser UI thread.
120 void AddWindow(HWND window); 120 void AddWindow(HWND window);
121 #endif 121 #endif
122 122
123 // Adds an IPC message filter. A reference will be kept to the filter.
124 void AddFilter(IPC::ChannelProxy::MessageFilter* filter);
125
126 private: 123 private:
127 // Sends a message to the plugin process to request creation of a new channel 124 // Sends a message to the plugin process to request creation of a new channel
128 // for the given mime type. 125 // for the given mime type.
129 void RequestPluginChannel(Client* client); 126 void RequestPluginChannel(Client* client);
130 127
131 // Message handlers. 128 // Message handlers.
132 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); 129 void OnChannelCreated(const IPC::ChannelHandle& channel_handle);
133 void OnChannelDestroyed(int renderer_id); 130 void OnChannelDestroyed(int renderer_id);
134 131
135 #if defined(OS_WIN) 132 #if defined(OS_WIN)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> { 195 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> {
199 public: 196 public:
200 PluginProcessHostIterator() 197 PluginProcessHostIterator()
201 : BrowserChildProcessHostTypeIterator<PluginProcessHost>( 198 : BrowserChildProcessHostTypeIterator<PluginProcessHost>(
202 PROCESS_TYPE_PLUGIN) {} 199 PROCESS_TYPE_PLUGIN) {}
203 }; 200 };
204 201
205 } // namespace content 202 } // namespace content
206 203
207 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ 204 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_message_filter.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698