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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 private: | 124 private: |
125 // Sends a message to the plugin process to request creation of a new channel | 125 // Sends a message to the plugin process to request creation of a new channel |
126 // for the given mime type. | 126 // for the given mime type. |
127 void RequestPluginChannel(Client* client); | 127 void RequestPluginChannel(Client* client); |
128 | 128 |
129 // Message handlers. | 129 // Message handlers. |
130 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); | 130 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); |
131 | 131 |
132 #if defined(OS_WIN) | 132 #if defined(OS_WIN) |
133 void OnPluginWindowDestroyed(HWND window, HWND parent); | 133 void OnPluginWindowDestroyed(HWND window, HWND parent); |
134 void OnReparentPluginWindow(HWND window, HWND parent); | |
135 void OnReportExecutableMemory(size_t size); | |
136 #endif | 134 #endif |
137 | 135 |
138 #if defined(USE_X11) | 136 #if defined(USE_X11) |
139 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); | 137 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); |
140 #endif | 138 #endif |
141 | 139 |
142 #if defined(OS_MACOSX) | 140 #if defined(OS_MACOSX) |
143 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, | 141 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, |
144 bool modal); | 142 bool modal); |
145 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, | 143 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 184 |
187 class PluginProcessHostIterator | 185 class PluginProcessHostIterator |
188 : public content::BrowserChildProcessHostTypeIterator<PluginProcessHost> { | 186 : public content::BrowserChildProcessHostTypeIterator<PluginProcessHost> { |
189 public: | 187 public: |
190 PluginProcessHostIterator() | 188 PluginProcessHostIterator() |
191 : content::BrowserChildProcessHostTypeIterator<PluginProcessHost>( | 189 : content::BrowserChildProcessHostTypeIterator<PluginProcessHost>( |
192 content::PROCESS_TYPE_PLUGIN) {} | 190 content::PROCESS_TYPE_PLUGIN) {} |
193 }; | 191 }; |
194 | 192 |
195 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 193 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
OLD | NEW |