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

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

Issue 2069853002: Ignore certain messages in plugin broker process if they are not sent by the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 18 matching lines...) Expand all
29 struct PepperPluginInfo; 29 struct PepperPluginInfo;
30 30
31 // Process host for PPAPI plugin and broker processes. 31 // Process host for PPAPI plugin and broker processes.
32 // When used for the broker, interpret all references to "plugin" with "broker". 32 // When used for the broker, interpret all references to "plugin" with "broker".
33 class PpapiPluginProcessHost : public BrowserChildProcessHostDelegate, 33 class PpapiPluginProcessHost : public BrowserChildProcessHostDelegate,
34 public IPC::Sender { 34 public IPC::Sender {
35 public: 35 public:
36 class Client { 36 class Client {
37 public: 37 public:
38 // Gets the information about the renderer that's requesting the channel. 38 // Gets the information about the renderer that's requesting the channel.
39 // If |renderer_handle| is base::kNullProcessHandle, this channel is used by
40 // the browser itself.
39 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, 41 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
40 int* renderer_id) = 0; 42 int* renderer_id) = 0;
41 43
42 // Called when the channel is asynchronously opened to the plugin or on 44 // Called when the channel is asynchronously opened to the plugin or on
43 // error. On error, the parameters should be: 45 // error. On error, the parameters should be:
44 // base::kNullProcessHandle 46 // base::kNullProcessHandle
45 // IPC::ChannelHandle(), 47 // IPC::ChannelHandle(),
46 // 0 48 // 0
47 virtual void OnPpapiChannelOpened( 49 virtual void OnPpapiChannelOpened(
48 const IPC::ChannelHandle& channel_handle, 50 const IPC::ChannelHandle& channel_handle,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 public: 200 public:
199 PpapiBrokerProcessHostIterator() 201 PpapiBrokerProcessHostIterator()
200 : BrowserChildProcessHostTypeIterator< 202 : BrowserChildProcessHostTypeIterator<
201 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} 203 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {}
202 }; 204 };
203 205
204 } // namespace content 206 } // namespace content
205 207
206 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 208 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
207 209
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_message_filter.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698