OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |