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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "content/browser/webrtc/webrtc_eventlog_host.h" 26 #include "content/browser/webrtc/webrtc_eventlog_host.h"
27 #include "content/common/content_export.h" 27 #include "content/common/content_export.h"
28 #include "content/public/browser/render_process_host.h" 28 #include "content/public/browser/render_process_host.h"
29 #include "ipc/ipc_channel_proxy.h" 29 #include "ipc/ipc_channel_proxy.h"
30 #include "ipc/ipc_platform_file.h" 30 #include "ipc/ipc_platform_file.h"
31 #include "mojo/public/cpp/bindings/interface_ptr.h" 31 #include "mojo/public/cpp/bindings/interface_ptr.h"
32 #include "services/shell/public/interfaces/service.mojom.h" 32 #include "services/shell/public/interfaces/service.mojom.h"
33 #include "ui/gfx/gpu_memory_buffer.h" 33 #include "ui/gfx/gpu_memory_buffer.h"
34 #include "ui/gl/gpu_switching_observer.h" 34 #include "ui/gl/gpu_switching_observer.h"
35 35
36 #if defined(OS_ANDROID)
37 #include "content/public/browser/android/interface_registry_android.h"
38 #endif
39
36 namespace base { 40 namespace base {
37 class CommandLine; 41 class CommandLine;
38 class MessageLoop; 42 class MessageLoop;
39 } 43 }
40 44
41 namespace gfx { 45 namespace gfx {
42 class Size; 46 class Size;
43 } 47 }
44 48
45 namespace IPC { 49 namespace IPC {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 #endif 293 #endif
290 294
291 // The count of currently swapped out but pending RenderViews. We have 295 // The count of currently swapped out but pending RenderViews. We have
292 // started to swap these in, so the renderer process should not exit if 296 // started to swap these in, so the renderer process should not exit if
293 // this count is non-zero. 297 // this count is non-zero.
294 int32_t pending_views_; 298 int32_t pending_views_;
295 299
296 private: 300 private:
297 friend class ChildProcessLauncherBrowserTest_ChildSpawnFail_Test; 301 friend class ChildProcessLauncherBrowserTest_ChildSpawnFail_Test;
298 friend class VisitRelayingRenderProcessHost; 302 friend class VisitRelayingRenderProcessHost;
303 class ConnectionFilterImpl;
299 304
300 std::unique_ptr<IPC::ChannelProxy> CreateChannelProxy( 305 std::unique_ptr<IPC::ChannelProxy> CreateChannelProxy(
301 const std::string& channel_id); 306 const std::string& channel_id);
302 307
303 // Creates and adds the IO thread message filters. 308 // Creates and adds the IO thread message filters.
304 void CreateMessageFilters(); 309 void CreateMessageFilters();
305 310
306 // Registers Mojo interfaces to be exposed to the renderer. 311 // Registers Mojo interfaces to be exposed to the renderer.
307 void RegisterMojoInterfaces(); 312 void RegisterMojoInterfaces();
308 313
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 #endif 362 #endif
358 363
359 static void OnMojoError( 364 static void OnMojoError(
360 base::WeakPtr<RenderProcessHostImpl> process, 365 base::WeakPtr<RenderProcessHostImpl> process,
361 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 366 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
362 const std::string& error); 367 const std::string& error);
363 368
364 std::string child_token_; 369 std::string child_token_;
365 370
366 std::unique_ptr<MojoChildConnection> mojo_child_connection_; 371 std::unique_ptr<MojoChildConnection> mojo_child_connection_;
372 ConnectionFilterImpl* connection_filter_ = nullptr;
367 shell::mojom::ServicePtr test_service_; 373 shell::mojom::ServicePtr test_service_;
374 #if defined(OS_ANDROID)
375 std::unique_ptr<InterfaceRegistryAndroid> interface_registry_android_;
376 #endif
368 377
369 // The registered IPC listener objects. When this list is empty, we should 378 // The registered IPC listener objects. When this list is empty, we should
370 // delete ourselves. 379 // delete ourselves.
371 IDMap<IPC::Listener> listeners_; 380 IDMap<IPC::Listener> listeners_;
372 381
373 // The count of currently visible widgets. Since the host can be a container 382 // The count of currently visible widgets. Since the host can be a container
374 // for multiple widgets, it uses this count to determine when it should be 383 // for multiple widgets, it uses this count to determine when it should be
375 // backgrounded. 384 // backgrounded.
376 int32_t visible_widgets_; 385 int32_t visible_widgets_;
377 386
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 528 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
520 529
521 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 530 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
522 531
523 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 532 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
524 }; 533 };
525 534
526 } // namespace content 535 } // namespace content
527 536
528 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 537 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_shell_context.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698