| 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_PPAPI_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const ViewHostMsg_Resource_Request& request_data); | 32 const ViewHostMsg_Resource_Request& request_data); |
| 33 | 33 |
| 34 virtual void OnMessageReceived(const IPC::Message& msg); | 34 virtual void OnMessageReceived(const IPC::Message& msg); |
| 35 virtual void OnChannelConnected(int32 peer_pid); | 35 virtual void OnChannelConnected(int32 peer_pid); |
| 36 virtual void OnChannelError(); | 36 virtual void OnChannelError(); |
| 37 | 37 |
| 38 // IPC message handlers. | 38 // IPC message handlers. |
| 39 void OnPluginLoaded(const IPC::ChannelHandle& handle); | 39 void OnPluginLoaded(const IPC::ChannelHandle& handle); |
| 40 | 40 |
| 41 // Sends the reply_msg_ to the renderer with the given channel info. | 41 // Sends the reply_msg_ to the renderer with the given channel info. |
| 42 void ReplyToRenderer(const IPC::ChannelHandle& handle); | 42 void ReplyToRenderer(base::ProcessHandle plugin_handle, |
| 43 const IPC::ChannelHandle& channel_handle); |
| 43 | 44 |
| 44 ResourceMessageFilter* filter_; | 45 ResourceMessageFilter* filter_; |
| 45 | 46 |
| 46 // Path to the plugin library. | 47 // Path to the plugin library. |
| 47 FilePath plugin_path_; | 48 FilePath plugin_path_; |
| 48 | 49 |
| 49 // When we're waiting for initialization of the plugin, this contains the | 50 // When we're waiting for initialization of the plugin, this contains the |
| 50 // reply message for the renderer to tell it that it can continue. | 51 // reply message for the renderer to tell it that it can continue. |
| 51 scoped_ptr<IPC::Message> reply_msg_; | 52 scoped_ptr<IPC::Message> reply_msg_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); | 54 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 #endif // CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 57 #endif // CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 57 | 58 |
| OLD | NEW |