OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // You must call Init before doing anything else. | 79 // You must call Init before doing anything else. |
80 PpapiPluginProcessHost(net::HostResolver* host_resolver); | 80 PpapiPluginProcessHost(net::HostResolver* host_resolver); |
81 PpapiPluginProcessHost(); | 81 PpapiPluginProcessHost(); |
82 | 82 |
83 // Actually launches the process with the given plugin info. Returns true | 83 // Actually launches the process with the given plugin info. Returns true |
84 // on success (the process was spawned). | 84 // on success (the process was spawned). |
85 bool Init(const content::PepperPluginInfo& info); | 85 bool Init(const content::PepperPluginInfo& info); |
86 | 86 |
87 void RequestPluginChannel(Client* client); | 87 void RequestPluginChannel(Client* client); |
88 | 88 |
89 virtual bool CanShutdown(); | 89 virtual bool CanShutdown() OVERRIDE; |
90 virtual void OnProcessLaunched(); | 90 virtual void OnProcessLaunched() OVERRIDE; |
91 | 91 |
92 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 92 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
93 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 93 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
94 virtual void OnChannelError() OVERRIDE; | 94 virtual void OnChannelError() OVERRIDE; |
95 | 95 |
96 void CancelRequests(); | 96 void CancelRequests(); |
97 | 97 |
98 // IPC message handlers. | 98 // IPC message handlers. |
99 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); | 99 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); |
100 #if defined(OS_WIN) | 100 #if defined(OS_WIN) |
(...skipping 20 matching lines...) Expand all Loading... |
121 const bool is_broker_; | 121 const bool is_broker_; |
122 | 122 |
123 // The unique id created for the process. | 123 // The unique id created for the process. |
124 int process_id_; | 124 int process_id_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); | 126 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); |
127 }; | 127 }; |
128 | 128 |
129 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 129 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
130 | 130 |
OLD | NEW |