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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: . Created 4 years, 3 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
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_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
11 #include <list> 11 #include <list>
12 12
13 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/process/kill.h" 15 #include "base/process/kill.h"
16 #include "base/process/process_handle.h" 16 #include "base/process/process_handle.h"
17 #include "base/supports_user_data.h" 17 #include "base/supports_user_data.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/public/common/associated_interfaces.mojom.h"
19 #include "ipc/ipc_channel_proxy.h" 20 #include "ipc/ipc_channel_proxy.h"
20 #include "ipc/ipc_sender.h" 21 #include "ipc/ipc_sender.h"
21 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
22 23
23 class GURL; 24 class GURL;
24 25
25 namespace base { 26 namespace base {
26 class SharedPersistentMemoryAllocator; 27 class SharedPersistentMemoryAllocator;
27 class TimeDelta; 28 class TimeDelta;
28 } 29 }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 260 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
260 261
261 // Notifies the renderer that the timezone configuration of the system might 262 // Notifies the renderer that the timezone configuration of the system might
262 // have changed. 263 // have changed.
263 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; 264 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0;
264 265
265 // Returns the shell::InterfaceProvider the browser process can use to bind 266 // Returns the shell::InterfaceProvider the browser process can use to bind
266 // interfaces exposed to it from the renderer. 267 // interfaces exposed to it from the renderer.
267 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; 268 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
268 269
270 // Returns the mojom::RouteProvider the browser process can use to connect
271 // to routed interfaces in the renderer.
272 virtual mojom::RouteProvider* GetRemoteRouteProvider() = 0;
Sam McNally 2016/09/09 05:33:14 Does this need to be public?
Ken Rockot(use gerrit already) 2016/09/09 16:01:50 Nope. Good call. Fixed.
273
269 // Extracts any persistent-memory-allocator used for renderer metrics. 274 // Extracts any persistent-memory-allocator used for renderer metrics.
270 // Ownership is passed to the caller. To support sharing of histogram data 275 // Ownership is passed to the caller. To support sharing of histogram data
271 // between the Renderer and the Browser, the allocator is created when the 276 // between the Renderer and the Browser, the allocator is created when the
272 // process is created and later retrieved by the SubprocessMetricsProvider 277 // process is created and later retrieved by the SubprocessMetricsProvider
273 // for management. 278 // for management.
274 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> 279 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator>
275 TakeMetricsAllocator() = 0; 280 TakeMetricsAllocator() = 0;
276 281
277 // PlzNavigate 282 // PlzNavigate
278 // Returns the time the first call to Init completed successfully (after a new 283 // Returns the time the first call to Init completed successfully (after a new
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 static void SetMaxRendererProcessCount(size_t count); 371 static void SetMaxRendererProcessCount(size_t count);
367 372
368 // 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
369 // content module. 374 // content module.
370 static size_t GetMaxRendererProcessCount(); 375 static size_t GetMaxRendererProcessCount();
371 }; 376 };
372 377
373 } // namespace content. 378 } // namespace content.
374 379
375 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 380 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698