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