OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 }; | 59 }; |
60 | 60 |
61 PluginProcessHost(); | 61 PluginProcessHost(); |
62 virtual ~PluginProcessHost(); | 62 virtual ~PluginProcessHost(); |
63 | 63 |
64 // Initialize the new plugin process, returning true on success. This must | 64 // Initialize the new plugin process, returning true on success. This must |
65 // be called before the object can be used. | 65 // be called before the object can be used. |
66 bool Init(const WebPluginInfo& info, const std::string& locale); | 66 bool Init(const WebPluginInfo& info, const std::string& locale); |
67 | 67 |
68 // Force the plugin process to shutdown (cleanly). | 68 // Force the plugin process to shutdown (cleanly). |
69 void ForceShutdown(); | 69 virtual void ForceShutdown(); |
70 | 70 |
71 virtual void OnMessageReceived(const IPC::Message& msg); | 71 virtual void OnMessageReceived(const IPC::Message& msg); |
72 virtual void OnChannelConnected(int32 peer_pid); | 72 virtual void OnChannelConnected(int32 peer_pid); |
73 virtual void OnChannelError(); | 73 virtual void OnChannelError(); |
74 | 74 |
75 // ResolveProxyMsgHelper::Delegate implementation: | 75 // ResolveProxyMsgHelper::Delegate implementation: |
76 virtual void OnResolveProxyCompleted(IPC::Message* reply_msg, | 76 virtual void OnResolveProxyCompleted(IPC::Message* reply_msg, |
77 int result, | 77 int result, |
78 const std::string& proxy_list); | 78 const std::string& proxy_list); |
79 | 79 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Tracks modal windows currently visible. | 175 // Tracks modal windows currently visible. |
176 std::set<uint32> plugin_modal_windows_set_; | 176 std::set<uint32> plugin_modal_windows_set_; |
177 // Tracks the current visibility of the cursor. | 177 // Tracks the current visibility of the cursor. |
178 bool plugin_cursor_visible_; | 178 bool plugin_cursor_visible_; |
179 #endif | 179 #endif |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); | 181 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
182 }; | 182 }; |
183 | 183 |
184 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 184 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
OLD | NEW |