| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 protected: | 61 protected: |
| 62 virtual ~Client() {} | 62 virtual ~Client() {} |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 PluginProcessHost(); | 65 PluginProcessHost(); |
| 66 virtual ~PluginProcessHost(); | 66 virtual ~PluginProcessHost(); |
| 67 | 67 |
| 68 // Initialize the new plugin process, returning true on success. This must | 68 // Initialize the new plugin process, returning true on success. This must |
| 69 // be called before the object can be used. | 69 // be called before the object can be used. |
| 70 bool Init(const webkit::WebPluginInfo& info, const std::string& locale); | 70 bool Init(const webkit::WebPluginInfo& info); |
| 71 | 71 |
| 72 // Force the plugin process to shutdown (cleanly). | 72 // Force the plugin process to shutdown (cleanly). |
| 73 void ForceShutdown(); | 73 void ForceShutdown(); |
| 74 | 74 |
| 75 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 75 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 76 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 76 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 77 virtual void OnChannelError() OVERRIDE; | 77 virtual void OnChannelError() OVERRIDE; |
| 78 | 78 |
| 79 // Tells the plugin process to create a new channel for communication with a | 79 // Tells the plugin process to create a new channel for communication with a |
| 80 // renderer. When the plugin process responds with the channel name, | 80 // renderer. When the plugin process responds with the channel name, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Tracks modal windows currently visible. | 166 // Tracks modal windows currently visible. |
| 167 std::set<uint32> plugin_modal_windows_set_; | 167 std::set<uint32> plugin_modal_windows_set_; |
| 168 // Tracks the current visibility of the cursor. | 168 // Tracks the current visibility of the cursor. |
| 169 bool plugin_cursor_visible_; | 169 bool plugin_cursor_visible_; |
| 170 #endif | 170 #endif |
| 171 | 171 |
| 172 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); | 172 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 175 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| OLD | NEW |