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

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

Issue 195993010: Adds the ability for the renderer to create the mojo channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to trunk and update ifdefs Created 6 years, 9 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 | Annotate | Revision Log
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_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 namespace gfx { 33 namespace gfx {
34 class Size; 34 class Size;
35 } 35 }
36 36
37 namespace content { 37 namespace content {
38 class AudioRendererHost; 38 class AudioRendererHost;
39 class BrowserDemuxerAndroid; 39 class BrowserDemuxerAndroid;
40 class GeolocationDispatcherHost; 40 class GeolocationDispatcherHost;
41 class GpuMessageFilter; 41 class GpuMessageFilter;
42 class MessagePortMessageFilter; 42 class MessagePortMessageFilter;
43 class MojoChannelInit;
43 class PeerConnectionTrackerHost; 44 class PeerConnectionTrackerHost;
44 class RendererMainThread; 45 class RendererMainThread;
45 class RenderWidgetHelper; 46 class RenderWidgetHelper;
46 class RenderWidgetHost; 47 class RenderWidgetHost;
47 class RenderWidgetHostImpl; 48 class RenderWidgetHostImpl;
48 class RenderWidgetHostViewFrameSubscriber; 49 class RenderWidgetHostViewFrameSubscriber;
49 class ScreenOrientationDispatcherHost; 50 class ScreenOrientationDispatcherHost;
50 class StoragePartition; 51 class StoragePartition;
51 class StoragePartitionImpl; 52 class StoragePartitionImpl;
52 53
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 void ProcessDied(bool already_dead); 289 void ProcessDied(bool already_dead);
289 290
290 virtual void OnGpuSwitching() OVERRIDE; 291 virtual void OnGpuSwitching() OVERRIDE;
291 292
292 #if defined(ENABLE_WEBRTC) 293 #if defined(ENABLE_WEBRTC)
293 // Sends |file_for_transit| to the render process. 294 // Sends |file_for_transit| to the render process.
294 void SendAecDumpFileToRenderer(IPC::PlatformFileForTransit file_for_transit); 295 void SendAecDumpFileToRenderer(IPC::PlatformFileForTransit file_for_transit);
295 void SendDisableAecDumpToRenderer(); 296 void SendDisableAecDumpToRenderer();
296 #endif 297 #endif
297 298
299 // Establishes the mojo channel to the renderer.
300 void CreateMojoChannel();
301
298 // The registered IPC listener objects. When this list is empty, we should 302 // The registered IPC listener objects. When this list is empty, we should
299 // delete ourselves. 303 // delete ourselves.
300 IDMap<IPC::Listener> listeners_; 304 IDMap<IPC::Listener> listeners_;
301 305
302 // The count of currently visible widgets. Since the host can be a container 306 // The count of currently visible widgets. Since the host can be a container
303 // for multiple widgets, it uses this count to determine when it should be 307 // for multiple widgets, it uses this count to determine when it should be
304 // backgrounded. 308 // backgrounded.
305 int32 visible_widgets_; 309 int32 visible_widgets_;
306 310
307 // Does this process have backgrounded priority. 311 // Does this process have backgrounded priority.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; 413 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_;
410 #endif 414 #endif
411 415
412 // Message filter for geolocation messages. 416 // Message filter for geolocation messages.
413 GeolocationDispatcherHost* geolocation_dispatcher_host_; 417 GeolocationDispatcherHost* geolocation_dispatcher_host_;
414 418
415 #if defined(ENABLE_WEBRTC) 419 #if defined(ENABLE_WEBRTC)
416 base::Callback<void(const std::string&)> webrtc_log_message_callback_; 420 base::Callback<void(const std::string&)> webrtc_log_message_callback_;
417 #endif 421 #endif
418 422
419 // Lives on the browser's ChildThread.
420 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
421
422 // Message filter and dispatcher for screen orientation. 423 // Message filter and dispatcher for screen orientation.
423 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; 424 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_;
424 425
425 int worker_ref_count_; 426 int worker_ref_count_;
426 427
428 // TODO(sky): remove ifdef, temporary until mac sorted out.
429 #if !defined(OS_MACOSX)
430 scoped_ptr<MojoChannelInit> mojo_channel_init_;
431 #endif
432
433 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
434
427 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 435 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
428 }; 436 };
429 437
430 } // namespace content 438 } // namespace content
431 439
432 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 440 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | content/common/mojo/mojo_channel_init.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698