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

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

Issue 10815073: Refactoring of new IPC-only pepper implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months 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
« no previous file with comments | « chrome/renderer/pepper/pepper_helper.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 #include <queue> 9 #include <queue>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
15 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h" 16 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h"
16 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 17 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
17 #include "content/public/browser/browser_child_process_host_delegate.h" 18 #include "content/public/browser/browser_child_process_host_delegate.h"
18 #include "content/public/browser/browser_child_process_host_iterator.h" 19 #include "content/public/browser/browser_child_process_host_iterator.h"
19 #include "ipc/ipc_sender.h" 20 #include "ipc/ipc_sender.h"
20 21
21 class BrowserChildProcessHostImpl; 22 class BrowserChildProcessHostImpl;
22 23
23 namespace content { 24 namespace content {
24 struct PepperPluginInfo; 25 struct PepperPluginInfo;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual void OnChannelError() OVERRIDE; 117 virtual void OnChannelError() OVERRIDE;
117 118
118 void CancelRequests(); 119 void CancelRequests();
119 120
120 // IPC message handlers. 121 // IPC message handlers.
121 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); 122 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
122 123
123 // Handles most requests from the plugin. May be NULL. 124 // Handles most requests from the plugin. May be NULL.
124 scoped_refptr<PepperMessageFilter> filter_; 125 scoped_refptr<PepperMessageFilter> filter_;
125 126
127 scoped_ptr<content::BrowserPpapiHostImpl> host_impl_;
128
126 // Handles filesystem requests from flash plugins. May be NULL. 129 // Handles filesystem requests from flash plugins. May be NULL.
127 scoped_refptr<PepperFileMessageFilter> file_filter_; 130 scoped_refptr<PepperFileMessageFilter> file_filter_;
128 131
129 // Observes network changes. May be NULL. 132 // Observes network changes. May be NULL.
130 scoped_ptr<PluginNetworkObserver> network_observer_; 133 scoped_ptr<PluginNetworkObserver> network_observer_;
131 134
132 // Channel requests that we are waiting to send to the plugin process once 135 // Channel requests that we are waiting to send to the plugin process once
133 // the channel is opened. 136 // the channel is opened.
134 std::vector<Client*> pending_requests_; 137 std::vector<Client*> pending_requests_;
135 138
(...skipping 27 matching lines...) Expand all
163 : public content::BrowserChildProcessHostTypeIterator< 166 : public content::BrowserChildProcessHostTypeIterator<
164 PpapiPluginProcessHost> { 167 PpapiPluginProcessHost> {
165 public: 168 public:
166 PpapiBrokerProcessHostIterator() 169 PpapiBrokerProcessHostIterator()
167 : content::BrowserChildProcessHostTypeIterator< 170 : content::BrowserChildProcessHostTypeIterator<
168 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} 171 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {}
169 }; 172 };
170 173
171 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 174 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
172 175
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/pepper_helper.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698