| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 PPAPI_PROXY_HOST_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_ |
| 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ | 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Notification that a sync message reply was received and the dispatcher | 41 // Notification that a sync message reply was received and the dispatcher |
| 42 // is no longer blocked on a sync message. | 42 // is no longer blocked on a sync message. |
| 43 virtual void EndBlockOnSyncMessage() = 0; | 43 virtual void EndBlockOnSyncMessage() = 0; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 // Constructor for the renderer side. This will take a reference to the | 46 // Constructor for the renderer side. This will take a reference to the |
| 47 // SyncMessageStatusReceiver. | 47 // SyncMessageStatusReceiver. |
| 48 // | 48 // |
| 49 // You must call InitHostWithChannel after the constructor. | 49 // You must call InitHostWithChannel after the constructor. |
| 50 HostDispatcher(base::ProcessHandle host_process_handle, | 50 HostDispatcher(PP_Module module, |
| 51 PP_Module module, | |
| 52 PP_GetInterface_Func local_get_interface, | 51 PP_GetInterface_Func local_get_interface, |
| 53 SyncMessageStatusReceiver* sync_status); | 52 SyncMessageStatusReceiver* sync_status); |
| 54 ~HostDispatcher(); | 53 ~HostDispatcher(); |
| 55 | 54 |
| 56 // You must call this function before anything else. Returns true on success. | 55 // You must call this function before anything else. Returns true on success. |
| 57 // The delegate pointer must outlive this class, ownership is not | 56 // The delegate pointer must outlive this class, ownership is not |
| 58 // transferred. | 57 // transferred. |
| 59 virtual bool InitHostWithChannel(Delegate* delegate, | 58 virtual bool InitHostWithChannel(Delegate* delegate, |
| 60 const IPC::ChannelHandle& channel_handle, | 59 const IPC::ChannelHandle& channel_handle, |
| 61 bool is_client, | 60 bool is_client, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 private: | 144 private: |
| 146 HostDispatcher* dispatcher_; | 145 HostDispatcher* dispatcher_; |
| 147 | 146 |
| 148 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); | 147 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); |
| 149 }; | 148 }; |
| 150 | 149 |
| 151 } // namespace proxy | 150 } // namespace proxy |
| 152 } // namespace ppapi | 151 } // namespace ppapi |
| 153 | 152 |
| 154 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ | 153 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ |
| OLD | NEW |