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 #endif | 256 #endif |
257 | 257 |
258 // Tells the ResourceDispatcherHost to resume a deferred navigation without | 258 // Tells the ResourceDispatcherHost to resume a deferred navigation without |
259 // transferring it to a new renderer process. | 259 // transferring it to a new renderer process. |
260 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; | 260 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; |
261 | 261 |
262 // Notifies the renderer that the timezone configuration of the system might | 262 // Notifies the renderer that the timezone configuration of the system might |
263 // have changed. | 263 // have changed. |
264 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; | 264 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; |
265 | 265 |
266 // Returns the shell::InterfaceRegistry the browser process uses to expose | |
267 // interfaces to the renderer. | |
268 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; | |
269 | |
270 // Returns the shell::InterfaceProvider the browser process can use to bind | 266 // Returns the shell::InterfaceProvider the browser process can use to bind |
271 // interfaces exposed to it from the renderer. | 267 // interfaces exposed to it from the renderer. |
272 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 268 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
273 | 269 |
274 // Extracts any persistent-memory-allocator used for renderer metrics. | 270 // Extracts any persistent-memory-allocator used for renderer metrics. |
275 // Ownership is passed to the caller. To support sharing of histogram data | 271 // Ownership is passed to the caller. To support sharing of histogram data |
276 // between the Renderer and the Browser, the allocator is created when the | 272 // between the Renderer and the Browser, the allocator is created when the |
277 // process is created and later retrieved by the SubprocessMetricsProvider | 273 // process is created and later retrieved by the SubprocessMetricsProvider |
278 // for management. | 274 // for management. |
279 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> | 275 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 static void SetMaxRendererProcessCount(size_t count); | 365 static void SetMaxRendererProcessCount(size_t count); |
370 | 366 |
371 // Returns the current maximum number of renderer process hosts kept by the | 367 // Returns the current maximum number of renderer process hosts kept by the |
372 // content module. | 368 // content module. |
373 static size_t GetMaxRendererProcessCount(); | 369 static size_t GetMaxRendererProcessCount(); |
374 }; | 370 }; |
375 | 371 |
376 } // namespace content. | 372 } // namespace content. |
377 | 373 |
378 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 374 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |