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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; | 256 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; |
257 | 257 |
258 // Returns the shell::InterfaceRegistry the browser process uses to expose | 258 // Returns the shell::InterfaceRegistry the browser process uses to expose |
259 // interfaces to the renderer. | 259 // interfaces to the renderer. |
260 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; | 260 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; |
261 | 261 |
262 // Returns the shell::InterfaceProvider the browser process can use to bind | 262 // Returns the shell::InterfaceProvider the browser process can use to bind |
263 // interfaces exposed to it from the renderer. | 263 // interfaces exposed to it from the renderer. |
264 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 264 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
265 | 265 |
| 266 // Returns the shell connection for this process. |
| 267 virtual shell::Connection* GetChildConnection() = 0; |
| 268 |
266 // Extracts any persistent-memory-allocator used for renderer metrics. | 269 // Extracts any persistent-memory-allocator used for renderer metrics. |
267 // Ownership is passed to the caller. To support sharing of histogram data | 270 // Ownership is passed to the caller. To support sharing of histogram data |
268 // between the Renderer and the Browser, the allocator is created when the | 271 // between the Renderer and the Browser, the allocator is created when the |
269 // process is created and later retrieved by the SubprocessMetricsProvider | 272 // process is created and later retrieved by the SubprocessMetricsProvider |
270 // for management. | 273 // for management. |
271 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> | 274 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> |
272 TakeMetricsAllocator() = 0; | 275 TakeMetricsAllocator() = 0; |
273 | 276 |
274 // PlzNavigate | 277 // PlzNavigate |
275 // Returns the time the first call to Init completed successfully (after a new | 278 // 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... |
361 static void SetMaxRendererProcessCount(size_t count); | 364 static void SetMaxRendererProcessCount(size_t count); |
362 | 365 |
363 // Returns the current maximum number of renderer process hosts kept by the | 366 // Returns the current maximum number of renderer process hosts kept by the |
364 // content module. | 367 // content module. |
365 static size_t GetMaxRendererProcessCount(); | 368 static size_t GetMaxRendererProcessCount(); |
366 }; | 369 }; |
367 | 370 |
368 } // namespace content. | 371 } // namespace content. |
369 | 372 |
370 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 373 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |