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

Side by Side 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 unified diff | 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 »
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_PPAPI_PLUGIN_PPAPI_THREAD_H_ 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Message handlers. 103 // Message handlers.
104 void OnLoadPlugin(const base::FilePath& path, 104 void OnLoadPlugin(const base::FilePath& path,
105 const ppapi::PpapiPermissions& permissions); 105 const ppapi::PpapiPermissions& permissions);
106 void OnCreateChannel(base::ProcessId renderer_pid, 106 void OnCreateChannel(base::ProcessId renderer_pid,
107 int renderer_child_id, 107 int renderer_child_id,
108 bool incognito); 108 bool incognito);
109 void OnSetNetworkState(bool online); 109 void OnSetNetworkState(bool online);
110 void OnCrash(); 110 void OnCrash();
111 void OnHang(); 111 void OnHang();
112 112
113 // Sets up the channel to the given renderer. On success, returns true and 113 // Sets up the channel to the given renderer. If |renderer_pid| is
114 // fills the given ChannelHandle with the information from the new channel. 114 // base::kNullProcessId, the channel is set up to the browser. On success,
115 bool SetupRendererChannel(base::ProcessId renderer_pid, 115 // returns true and fills the given ChannelHandle with the information from
116 int renderer_child_id, 116 // the new channel.
117 bool incognito, 117 bool SetupChannel(base::ProcessId renderer_pid,
118 IPC::ChannelHandle* handle); 118 int renderer_child_id,
119 bool incognito,
120 IPC::ChannelHandle* handle);
119 121
120 // Sets up the name of the plugin for logging using the given path. 122 // Sets up the name of the plugin for logging using the given path.
121 void SavePluginName(const base::FilePath& path); 123 void SavePluginName(const base::FilePath& path);
122 124
123 void ReportLoadResult(const base::FilePath& path, LoadResult result); 125 void ReportLoadResult(const base::FilePath& path, LoadResult result);
124 126
125 // Reports |error| to UMA when plugin load fails. 127 // Reports |error| to UMA when plugin load fails.
126 void ReportLoadErrorCode(const base::FilePath& path, 128 void ReportLoadErrorCode(const base::FilePath& path,
127 const base::NativeLibraryLoadError& error); 129 const base::NativeLibraryLoadError& error);
128 130
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); 175 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread);
174 }; 176 };
175 177
176 #if defined(COMPILER_MSVC) 178 #if defined(COMPILER_MSVC)
177 #pragma warning(pop) 179 #pragma warning(pop)
178 #endif 180 #endif
179 181
180 } // namespace content 182 } // namespace content
181 183
182 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 184 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
OLDNEW
« 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