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

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

Issue 10984094: Hook up PpapiPermissions in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/test/ppapi/ppapi_test.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/browser_ppapi_host_impl.h"
16 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h" 16 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h"
17 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 17 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
18 #include "content/public/browser/browser_child_process_host_delegate.h" 18 #include "content/public/browser/browser_child_process_host_delegate.h"
19 #include "content/public/browser/browser_child_process_host_iterator.h" 19 #include "content/public/browser/browser_child_process_host_iterator.h"
20 #include "ipc/ipc_sender.h" 20 #include "ipc/ipc_sender.h"
21 #include "ppapi/shared_impl/ppapi_permissions.h"
21 22
22 class BrowserChildProcessHostImpl; 23 class BrowserChildProcessHostImpl;
23 24
24 namespace content { 25 namespace content {
25 struct PepperPluginInfo; 26 struct PepperPluginInfo;
26 class ResourceContext; 27 class ResourceContext;
27 } 28 }
28 29
29 namespace net { 30 namespace net {
30 class HostResolver; 31 class HostResolver;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual void OnChannelError() OVERRIDE; 132 virtual void OnChannelError() OVERRIDE;
132 133
133 void CancelRequests(); 134 void CancelRequests();
134 135
135 // IPC message handlers. 136 // IPC message handlers.
136 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); 137 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
137 138
138 // Handles most requests from the plugin. May be NULL. 139 // Handles most requests from the plugin. May be NULL.
139 scoped_refptr<PepperMessageFilter> filter_; 140 scoped_refptr<PepperMessageFilter> filter_;
140 141
142 ppapi::PpapiPermissions permissions_;
141 scoped_refptr<content::BrowserPpapiHostImpl> host_impl_; 143 scoped_refptr<content::BrowserPpapiHostImpl> host_impl_;
142 144
143 // Handles filesystem requests from flash plugins. May be NULL. 145 // Handles filesystem requests from flash plugins. May be NULL.
144 scoped_refptr<PepperFileMessageFilter> file_filter_; 146 scoped_refptr<PepperFileMessageFilter> file_filter_;
145 147
146 // Observes network changes. May be NULL. 148 // Observes network changes. May be NULL.
147 scoped_ptr<PluginNetworkObserver> network_observer_; 149 scoped_ptr<PluginNetworkObserver> network_observer_;
148 150
149 // Channel requests that we are waiting to send to the plugin process once 151 // Channel requests that we are waiting to send to the plugin process once
150 // the channel is opened. 152 // the channel is opened.
(...skipping 29 matching lines...) Expand all
180 : public content::BrowserChildProcessHostTypeIterator< 182 : public content::BrowserChildProcessHostTypeIterator<
181 PpapiPluginProcessHost> { 183 PpapiPluginProcessHost> {
182 public: 184 public:
183 PpapiBrokerProcessHostIterator() 185 PpapiBrokerProcessHostIterator()
184 : content::BrowserChildProcessHostTypeIterator< 186 : content::BrowserChildProcessHostTypeIterator<
185 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} 187 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {}
186 }; 188 };
187 189
188 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 190 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
189 191
OLDNEW
« no previous file with comments | « chrome/test/ppapi/ppapi_test.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698