OLD | NEW |
---|---|
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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 | 191 |
192 // Called to resume the requests for a view created through window.open that | 192 // Called to resume the requests for a view created through window.open that |
193 // were initially blocked. | 193 // were initially blocked. |
194 virtual void ResumeRequestsForView(int route_id) = 0; | 194 virtual void ResumeRequestsForView(int route_id) = 0; |
195 | 195 |
196 // Checks that the given renderer can request |url|, if not it sets it to | 196 // Checks that the given renderer can request |url|, if not it sets it to |
197 // about:blank. | 197 // about:blank. |
198 // |empty_allowed| must be set to false for navigations for security reasons. | 198 // |empty_allowed| must be set to false for navigations for security reasons. |
199 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; | 199 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; |
200 | 200 |
201 typedef base::Callback<void(scoped_ptr<uint8[]> packet_header, | |
jam
2014/07/15 02:05:43
why move this out instead of ifdef'ing out the cod
zhaoze.zhou
2014/07/15 13:21:21
In file included from ../../content/browser/render
jam
2014/07/15 16:20:39
seems like "#if defined(ENABLE_WEBRTC)" should be
| |
202 size_t header_length, | |
203 size_t packet_length, | |
204 bool incoming)> WebRtcRtpPacketCallback; | |
205 | |
201 #if defined(ENABLE_WEBRTC) | 206 #if defined(ENABLE_WEBRTC) |
202 virtual void EnableAecDump(const base::FilePath& file) = 0; | 207 virtual void EnableAecDump(const base::FilePath& file) = 0; |
203 virtual void DisableAecDump() = 0; | 208 virtual void DisableAecDump() = 0; |
204 | 209 |
205 // When set, |callback| receives log messages regarding, for example, media | 210 // When set, |callback| receives log messages regarding, for example, media |
206 // devices (webcams, mics, etc) that were initially requested in the render | 211 // devices (webcams, mics, etc) that were initially requested in the render |
207 // process associated with this RenderProcessHost. | 212 // process associated with this RenderProcessHost. |
208 virtual void SetWebRtcLogMessageCallback( | 213 virtual void SetWebRtcLogMessageCallback( |
209 base::Callback<void(const std::string&)> callback) = 0; | 214 base::Callback<void(const std::string&)> callback) = 0; |
210 | 215 |
211 typedef base::Callback<void(scoped_ptr<uint8[]> packet_header, | |
212 size_t header_length, | |
213 size_t packet_length, | |
214 bool incoming)> WebRtcRtpPacketCallback; | |
215 | |
216 typedef base::Callback<void(bool incoming, bool outgoing)> | 216 typedef base::Callback<void(bool incoming, bool outgoing)> |
217 WebRtcStopRtpDumpCallback; | 217 WebRtcStopRtpDumpCallback; |
218 | 218 |
219 // Starts passing RTP packets to |packet_callback| and returns the callback | 219 // Starts passing RTP packets to |packet_callback| and returns the callback |
220 // used to stop dumping. | 220 // used to stop dumping. |
221 virtual WebRtcStopRtpDumpCallback StartRtpDump( | 221 virtual WebRtcStopRtpDumpCallback StartRtpDump( |
222 bool incoming, | 222 bool incoming, |
223 bool outgoing, | 223 bool outgoing, |
224 const WebRtcRtpPacketCallback& packet_callback) = 0; | 224 const WebRtcRtpPacketCallback& packet_callback) = 0; |
225 #endif | 225 #endif |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 static void SetMaxRendererProcessCount(size_t count); | 283 static void SetMaxRendererProcessCount(size_t count); |
284 | 284 |
285 // Returns the current max number of renderer processes used by the content | 285 // Returns the current max number of renderer processes used by the content |
286 // module. | 286 // module. |
287 static size_t GetMaxRendererProcessCount(); | 287 static size_t GetMaxRendererProcessCount(); |
288 }; | 288 }; |
289 | 289 |
290 } // namespace content. | 290 } // namespace content. |
291 | 291 |
292 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 292 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |