| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 PluginProcessHost(); | 57 PluginProcessHost(); |
| 58 virtual ~PluginProcessHost(); | 58 virtual ~PluginProcessHost(); |
| 59 | 59 |
| 60 // Initialize the new plugin process, returning true on success. This must | 60 // Initialize the new plugin process, returning true on success. This must |
| 61 // be called before the object can be used. | 61 // be called before the object can be used. |
| 62 bool Init(const webkit::WebPluginInfo& info, const std::string& locale); | 62 bool Init(const webkit::WebPluginInfo& info, const std::string& locale); |
| 63 | 63 |
| 64 // Force the plugin process to shutdown (cleanly). | 64 // Force the plugin process to shutdown (cleanly). |
| 65 virtual void ForceShutdown(); | 65 virtual void ForceShutdown(); |
| 66 | 66 |
| 67 virtual bool OnMessageReceived(const IPC::Message& msg); | 67 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 68 virtual void OnChannelConnected(int32 peer_pid); | 68 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 69 virtual void OnChannelError(); | 69 virtual void OnChannelError() OVERRIDE; |
| 70 | 70 |
| 71 // Tells the plugin process to create a new channel for communication with a | 71 // Tells the plugin process to create a new channel for communication with a |
| 72 // renderer. When the plugin process responds with the channel name, | 72 // renderer. When the plugin process responds with the channel name, |
| 73 // OnChannelOpened in the client is called. | 73 // OnChannelOpened in the client is called. |
| 74 void OpenChannelToPlugin(Client* client); | 74 void OpenChannelToPlugin(Client* client); |
| 75 | 75 |
| 76 // This function is called on the IO thread once we receive a reply from the | 76 // This function is called on the IO thread once we receive a reply from the |
| 77 // modal HTML dialog (in the form of a JSON string). This function forwards | 77 // modal HTML dialog (in the form of a JSON string). This function forwards |
| 78 // that reply back to the plugin that requested the dialog. | 78 // that reply back to the plugin that requested the dialog. |
| 79 void OnModalDialogResponse(const std::string& json_retval, | 79 void OnModalDialogResponse(const std::string& json_retval, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // Tracks modal windows currently visible. | 145 // Tracks modal windows currently visible. |
| 146 std::set<uint32> plugin_modal_windows_set_; | 146 std::set<uint32> plugin_modal_windows_set_; |
| 147 // Tracks the current visibility of the cursor. | 147 // Tracks the current visibility of the cursor. |
| 148 bool plugin_cursor_visible_; | 148 bool plugin_cursor_visible_; |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); | 151 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 154 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| OLD | NEW |