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

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

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing compilation errors Created 6 years, 6 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 25 matching lines...) Expand all
36 } 36 }
37 37
38 namespace gfx { 38 namespace gfx {
39 class Size; 39 class Size;
40 struct GpuMemoryBufferHandle; 40 struct GpuMemoryBufferHandle;
41 } 41 }
42 42
43 namespace content { 43 namespace content {
44 class AudioRendererHost; 44 class AudioRendererHost;
45 class BrowserDemuxerAndroid; 45 class BrowserDemuxerAndroid;
46 class BrowserMessageFilterPeer;
46 class GpuMessageFilter; 47 class GpuMessageFilter;
47 class MessagePortMessageFilter; 48 class MessagePortMessageFilter;
48 class MojoApplicationHost; 49 class MojoApplicationHost;
49 #if defined(ENABLE_WEBRTC) 50 #if defined(ENABLE_WEBRTC)
50 class P2PSocketDispatcherHost; 51 class P2PSocketDispatcherHost;
51 #endif 52 #endif
52 class PeerConnectionTrackerHost; 53 class PeerConnectionTrackerHost;
53 class RendererMainThread; 54 class RendererMainThread;
54 class RenderProcessHostMojoImpl; 55 class RenderProcessHostMojoImpl;
55 class RenderWidgetHelper; 56 class RenderWidgetHelper;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // backgrounded. 355 // backgrounded.
355 int32 visible_widgets_; 356 int32 visible_widgets_;
356 357
357 // Does this process have backgrounded priority. 358 // Does this process have backgrounded priority.
358 bool backgrounded_; 359 bool backgrounded_;
359 360
360 // Used to allow a RenderWidgetHost to intercept various messages on the 361 // Used to allow a RenderWidgetHost to intercept various messages on the
361 // IO thread. 362 // IO thread.
362 scoped_refptr<RenderWidgetHelper> widget_helper_; 363 scoped_refptr<RenderWidgetHelper> widget_helper_;
363 364
365 // Passed to added browser filters
366 scoped_ptr<BrowserMessageFilterPeer> filter_peer_;
367
364 // The filter for GPU-related messages coming from the renderer. 368 // The filter for GPU-related messages coming from the renderer.
365 // Thread safety note: this field is to be accessed from the UI thread. 369 // Thread safety note: this field is to be accessed from the UI thread.
366 // We don't keep a reference to it, to avoid it being destroyed on the UI 370 // We don't keep a reference to it, to avoid it being destroyed on the UI
367 // thread, but we clear this field when we clear channel_. When channel_ goes 371 // thread, but we clear this field when we clear channel_. When channel_ goes
368 // away, it posts a task to the IO thread to destroy it there, so we know that 372 // away, it posts a task to the IO thread to destroy it there, so we know that
369 // it's valid if non-NULL. 373 // it's valid if non-NULL.
370 GpuMessageFilter* gpu_message_filter_; 374 GpuMessageFilter* gpu_message_filter_;
371 375
372 // The filter for MessagePort messages coming from the renderer. 376 // The filter for MessagePort messages coming from the renderer.
373 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; 377 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 #if defined(OS_MACOSX) 468 #if defined(OS_MACOSX)
465 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; 469 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_;
466 #endif 470 #endif
467 471
468 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 472 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
469 }; 473 };
470 474
471 } // namespace content 475 } // namespace content
472 476
473 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 477 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698