Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: content/browser/ppapi_plugin_process_host.h

Issue 61063003: Keep NaCl plugins used in app background pages alive when active. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: working prototype Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 void CancelRequests(); 136 void CancelRequests();
137 137
138 // IPC message handlers. 138 // IPC message handlers.
139 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); 139 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
140 140
141 // Handles most requests from the plugin. May be NULL. 141 // Handles most requests from the plugin. May be NULL.
142 scoped_refptr<PepperMessageFilter> filter_; 142 scoped_refptr<PepperMessageFilter> filter_;
143 143
144 ppapi::PpapiPermissions permissions_; 144 ppapi::PpapiPermissions permissions_;
145 scoped_ptr<BrowserPpapiHostImpl> host_impl_; 145 scoped_refptr<BrowserPpapiHostImpl> host_impl_;
146 146
147 // Observes network changes. May be NULL. 147 // Observes network changes. May be NULL.
148 scoped_ptr<PluginNetworkObserver> network_observer_; 148 scoped_ptr<PluginNetworkObserver> network_observer_;
149 149
150 // Channel requests that we are waiting to send to the plugin process once 150 // Channel requests that we are waiting to send to the plugin process once
151 // the channel is opened. 151 // the channel is opened.
152 std::vector<Client*> pending_requests_; 152 std::vector<Client*> pending_requests_;
153 153
154 // Channel requests that we have already sent to the plugin process, but 154 // Channel requests that we have already sent to the plugin process, but
155 // haven't heard back about yet. 155 // haven't heard back about yet.
(...skipping 27 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698