| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // renderer. When the plugin process responds with the channel name, | 60 // renderer. When the plugin process responds with the channel name, |
| 61 // reply_msg is used to send the name to the renderer. | 61 // reply_msg is used to send the name to the renderer. |
| 62 void OpenChannelToPlugin(ResourceMessageFilter* renderer_message_filter, | 62 void OpenChannelToPlugin(ResourceMessageFilter* renderer_message_filter, |
| 63 const std::string& mime_type, | 63 const std::string& mime_type, |
| 64 IPC::Message* reply_msg); | 64 IPC::Message* reply_msg); |
| 65 | 65 |
| 66 // Sends the reply to an open channel request to the renderer with the given | 66 // Sends the reply to an open channel request to the renderer with the given |
| 67 // channel name. | 67 // channel name. |
| 68 static void ReplyToRenderer(ResourceMessageFilter* renderer_message_filter, | 68 static void ReplyToRenderer(ResourceMessageFilter* renderer_message_filter, |
| 69 const IPC::ChannelHandle& channel, | 69 const IPC::ChannelHandle& channel, |
| 70 const FilePath& plugin_path, | 70 const WebPluginInfo& info, |
| 71 IPC::Message* reply_msg); | 71 IPC::Message* reply_msg); |
| 72 | 72 |
| 73 // This function is called on the IO thread once we receive a reply from the | 73 // This function is called on the IO thread once we receive a reply from the |
| 74 // modal HTML dialog (in the form of a JSON string). This function forwards | 74 // modal HTML dialog (in the form of a JSON string). This function forwards |
| 75 // that reply back to the plugin that requested the dialog. | 75 // that reply back to the plugin that requested the dialog. |
| 76 void OnModalDialogResponse(const std::string& json_retval, | 76 void OnModalDialogResponse(const std::string& json_retval, |
| 77 IPC::Message* sync_result); | 77 IPC::Message* sync_result); |
| 78 | 78 |
| 79 const WebPluginInfo& info() const { return info_; } | 79 const WebPluginInfo& info() const { return info_; } |
| 80 | 80 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 #if defined(OS_WIN) | 146 #if defined(OS_WIN) |
| 147 // Tracks plugin parent windows created on the UI thread. | 147 // Tracks plugin parent windows created on the UI thread. |
| 148 std::set<HWND> plugin_parent_windows_set_; | 148 std::set<HWND> plugin_parent_windows_set_; |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); | 151 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 154 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| OLD | NEW |