| 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 CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 int plugin_process_id, | 85 int plugin_process_id, |
| 86 int32 pp_instance, | 86 int32 pp_instance, |
| 87 const PepperRendererInstanceData& instance_data); | 87 const PepperRendererInstanceData& instance_data); |
| 88 | 88 |
| 89 // The opposite of DIdCreate... above. | 89 // The opposite of DIdCreate... above. |
| 90 static void DidDeleteOutOfProcessInstance(int plugin_process_id, | 90 static void DidDeleteOutOfProcessInstance(int plugin_process_id, |
| 91 int32 pp_instance); | 91 int32 pp_instance); |
| 92 | 92 |
| 93 // Returns the instances that match the specified process name. | 93 // Returns the instances that match the specified process name. |
| 94 // It can only be called on the IO thread. | 94 // It can only be called on the IO thread. |
| 95 static void FindByName(const string16& name, | 95 static void FindByName(const base::string16& name, |
| 96 std::vector<PpapiPluginProcessHost*>* hosts); | 96 std::vector<PpapiPluginProcessHost*>* hosts); |
| 97 | 97 |
| 98 // IPC::Sender implementation: | 98 // IPC::Sender implementation: |
| 99 virtual bool Send(IPC::Message* message) OVERRIDE; | 99 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 100 | 100 |
| 101 // Opens a new channel to the plugin. The client will be notified when the | 101 // Opens a new channel to the plugin. The client will be notified when the |
| 102 // channel is ready or if there's an error. | 102 // channel is ready or if there's an error. |
| 103 void OpenChannelToPlugin(Client* client); | 103 void OpenChannelToPlugin(Client* client); |
| 104 | 104 |
| 105 BrowserPpapiHostImpl* host_impl() { return host_impl_.get(); } | 105 BrowserPpapiHostImpl* host_impl() { return host_impl_.get(); } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 public: | 183 public: |
| 184 PpapiBrokerProcessHostIterator() | 184 PpapiBrokerProcessHostIterator() |
| 185 : BrowserChildProcessHostTypeIterator< | 185 : BrowserChildProcessHostTypeIterator< |
| 186 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 186 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 } // namespace content | 189 } // namespace content |
| 190 | 190 |
| 191 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 191 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 192 | 192 |
| OLD | NEW |