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

Unified Diff: content/ppapi_plugin/ppapi_thread.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/ppapi_plugin/broker_process_dispatcher.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_thread.h
diff --git a/content/ppapi_plugin/ppapi_thread.h b/content/ppapi_plugin/ppapi_thread.h
index 44c1cebfff1fd3e0d89efa3b6ee75dae2a5217ee..a3b322bb7aa6a07bca4082174d29f60f9aeb30f4 100644
--- a/content/ppapi_plugin/ppapi_thread.h
+++ b/content/ppapi_plugin/ppapi_thread.h
@@ -110,12 +110,14 @@ class PpapiThread : public ChildThreadImpl,
void OnCrash();
void OnHang();
- // Sets up the channel to the given renderer. On success, returns true and
- // fills the given ChannelHandle with the information from the new channel.
- bool SetupRendererChannel(base::ProcessId renderer_pid,
- int renderer_child_id,
- bool incognito,
- IPC::ChannelHandle* handle);
+ // Sets up the channel to the given renderer. If |renderer_pid| is
+ // base::kNullProcessId, the channel is set up to the browser. On success,
+ // returns true and fills the given ChannelHandle with the information from
+ // the new channel.
+ bool SetupChannel(base::ProcessId renderer_pid,
+ int renderer_child_id,
+ bool incognito,
+ IPC::ChannelHandle* handle);
// Sets up the name of the plugin for logging using the given path.
void SavePluginName(const base::FilePath& path);
« no previous file with comments | « content/ppapi_plugin/broker_process_dispatcher.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698