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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; | 263 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; |
264 | 264 |
265 // Returns the shell::InterfaceRegistry the browser process uses to expose | 265 // Returns the shell::InterfaceRegistry the browser process uses to expose |
266 // interfaces to the renderer. | 266 // interfaces to the renderer. |
267 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; | 267 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; |
268 | 268 |
269 // Returns the shell::InterfaceProvider the browser process can use to bind | 269 // Returns the shell::InterfaceProvider the browser process can use to bind |
270 // interfaces exposed to it from the renderer. | 270 // interfaces exposed to it from the renderer. |
271 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 271 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
272 | 272 |
| 273 // Returns the shell connection for this process. |
| 274 virtual shell::Connection* GetChildConnection() = 0; |
| 275 |
273 // Extracts any persistent-memory-allocator used for renderer metrics. | 276 // Extracts any persistent-memory-allocator used for renderer metrics. |
274 // Ownership is passed to the caller. To support sharing of histogram data | 277 // Ownership is passed to the caller. To support sharing of histogram data |
275 // between the Renderer and the Browser, the allocator is created when the | 278 // between the Renderer and the Browser, the allocator is created when the |
276 // process is created and later retrieved by the SubprocessMetricsProvider | 279 // process is created and later retrieved by the SubprocessMetricsProvider |
277 // for management. | 280 // for management. |
278 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> | 281 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> |
279 TakeMetricsAllocator() = 0; | 282 TakeMetricsAllocator() = 0; |
280 | 283 |
281 // PlzNavigate | 284 // PlzNavigate |
282 // Returns the time the first call to Init completed successfully (after a new | 285 // Returns the time the first call to Init completed successfully (after a new |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 static void SetMaxRendererProcessCount(size_t count); | 371 static void SetMaxRendererProcessCount(size_t count); |
369 | 372 |
370 // Returns the current maximum number of renderer process hosts kept by the | 373 // Returns the current maximum number of renderer process hosts kept by the |
371 // content module. | 374 // content module. |
372 static size_t GetMaxRendererProcessCount(); | 375 static size_t GetMaxRendererProcessCount(); |
373 }; | 376 }; |
374 | 377 |
375 } // namespace content. | 378 } // namespace content. |
376 | 379 |
377 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 380 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |