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

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

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create Blobs on browser-process, eliminating two IPC copies. Created 6 years, 7 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 20 matching lines...) Expand all
31 class CommandLine; 31 class CommandLine;
32 class MessageLoop; 32 class MessageLoop;
33 } 33 }
34 34
35 namespace gfx { 35 namespace gfx {
36 class Size; 36 class Size;
37 } 37 }
38 38
39 namespace content { 39 namespace content {
40 class AudioRendererHost; 40 class AudioRendererHost;
41 class BlobStorageHost;
41 class BrowserDemuxerAndroid; 42 class BrowserDemuxerAndroid;
43 class FileAPIMessageFilter;
42 class GeolocationDispatcherHost; 44 class GeolocationDispatcherHost;
43 class GpuMessageFilter; 45 class GpuMessageFilter;
44 class MessagePortMessageFilter; 46 class MessagePortMessageFilter;
45 class MojoApplicationHost; 47 class MojoApplicationHost;
46 class PeerConnectionTrackerHost; 48 class PeerConnectionTrackerHost;
47 class RendererMainThread; 49 class RendererMainThread;
48 class RenderProcessHostMojoImpl; 50 class RenderProcessHostMojoImpl;
49 class RenderWidgetHelper; 51 class RenderWidgetHelper;
50 class RenderWidgetHost; 52 class RenderWidgetHost;
51 class RenderWidgetHostImpl; 53 class RenderWidgetHostImpl;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; 129 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE;
128 #if defined(ENABLE_WEBRTC) 130 #if defined(ENABLE_WEBRTC)
129 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; 131 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE;
130 virtual void DisableAecDump() OVERRIDE; 132 virtual void DisableAecDump() OVERRIDE;
131 virtual void SetWebRtcLogMessageCallback( 133 virtual void SetWebRtcLogMessageCallback(
132 base::Callback<void(const std::string&)> callback) OVERRIDE; 134 base::Callback<void(const std::string&)> callback) OVERRIDE;
133 #endif 135 #endif
134 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) 136 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id)
135 OVERRIDE; 137 OVERRIDE;
136 virtual void NotifyTimezoneChange() OVERRIDE; 138 virtual void NotifyTimezoneChange() OVERRIDE;
139 virtual BlobStorageHost* GetBlobStorageHost() const OVERRIDE;
137 140
138 // IPC::Sender via RenderProcessHost. 141 // IPC::Sender via RenderProcessHost.
139 virtual bool Send(IPC::Message* msg) OVERRIDE; 142 virtual bool Send(IPC::Message* msg) OVERRIDE;
140 143
141 // IPC::Listener via RenderProcessHost. 144 // IPC::Listener via RenderProcessHost.
142 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 145 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
143 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 146 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
144 virtual void OnChannelError() OVERRIDE; 147 virtual void OnChannelError() OVERRIDE;
145 148
146 // ChildProcessLauncher::Client implementation. 149 // ChildProcessLauncher::Client implementation.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 scoped_refptr<RenderWidgetHelper> widget_helper_; 330 scoped_refptr<RenderWidgetHelper> widget_helper_;
328 331
329 // The filter for GPU-related messages coming from the renderer. 332 // The filter for GPU-related messages coming from the renderer.
330 // Thread safety note: this field is to be accessed from the UI thread. 333 // Thread safety note: this field is to be accessed from the UI thread.
331 // We don't keep a reference to it, to avoid it being destroyed on the UI 334 // We don't keep a reference to it, to avoid it being destroyed on the UI
332 // thread, but we clear this field when we clear channel_. When channel_ goes 335 // thread, but we clear this field when we clear channel_. When channel_ goes
333 // away, it posts a task to the IO thread to destroy it there, so we know that 336 // away, it posts a task to the IO thread to destroy it there, so we know that
334 // it's valid if non-NULL. 337 // it's valid if non-NULL.
335 GpuMessageFilter* gpu_message_filter_; 338 GpuMessageFilter* gpu_message_filter_;
336 339
340 // The filter for FileAPI messages coming from the renderer.
341 scoped_refptr<FileAPIMessageFilter> fileapi_message_filter_;
342
337 // The filter for MessagePort messages coming from the renderer. 343 // The filter for MessagePort messages coming from the renderer.
338 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; 344 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_;
339 345
340 // Used in single-process mode. 346 // Used in single-process mode.
341 scoped_ptr<base::Thread> in_process_renderer_; 347 scoped_ptr<base::Thread> in_process_renderer_;
342 348
343 // True after Init() has been called. We can't just check channel_ because we 349 // True after Init() has been called. We can't just check channel_ because we
344 // also reset that in the case of process termination. 350 // also reset that in the case of process termination.
345 bool is_initialized_; 351 bool is_initialized_;
346 352
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 base::TimeTicks survive_for_worker_start_time_; 430 base::TimeTicks survive_for_worker_start_time_;
425 431
426 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 432 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
427 433
428 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 434 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
429 }; 435 };
430 436
431 } // namespace content 437 } // namespace content
432 438
433 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 439 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698