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

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

Issue 334743006: Support multiple files for AEC dump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again... 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 // Callers can reduce the RenderProcess' priority. 318 // Callers can reduce the RenderProcess' priority.
319 void SetBackgrounded(bool backgrounded); 319 void SetBackgrounded(bool backgrounded);
320 320
321 // Handle termination of our process. 321 // Handle termination of our process.
322 void ProcessDied(bool already_dead); 322 void ProcessDied(bool already_dead);
323 323
324 virtual void OnGpuSwitching() OVERRIDE; 324 virtual void OnGpuSwitching() OVERRIDE;
325 325
326 #if defined(ENABLE_WEBRTC) 326 #if defined(ENABLE_WEBRTC)
327 void OnRegisterAecDumpConsumer(int id);
328 void OnUnregisterAecDumpConsumer(int id);
329 void RegisterAecDumpConsumerOnUIThread(int id);
330 void UnregisterAecDumpConsumerOnUIThread(int id);
331 void EnableAecDumpForId(const base::FilePath& file, int id);
327 // Sends |file_for_transit| to the render process. 332 // Sends |file_for_transit| to the render process.
328 void SendAecDumpFileToRenderer(IPC::PlatformFileForTransit file_for_transit); 333 void SendAecDumpFileToRenderer(int id,
334 IPC::PlatformFileForTransit file_for_transit);
329 void SendDisableAecDumpToRenderer(); 335 void SendDisableAecDumpToRenderer();
330 #endif 336 #endif
331 337
332 // GpuMemoryBuffer allocation handler. 338 // GpuMemoryBuffer allocation handler.
333 void OnAllocateGpuMemoryBuffer(uint32 width, 339 void OnAllocateGpuMemoryBuffer(uint32 width,
334 uint32 height, 340 uint32 height,
335 uint32 internalformat, 341 uint32 internalformat,
336 uint32 usage, 342 uint32 usage,
337 IPC::Message* reply); 343 IPC::Message* reply);
338 void GpuMemoryBufferAllocated(IPC::Message* reply, 344 void GpuMemoryBufferAllocated(IPC::Message* reply,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 443
438 #if defined(OS_ANDROID) 444 #if defined(OS_ANDROID)
439 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; 445 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_;
440 #endif 446 #endif
441 447
442 #if defined(ENABLE_WEBRTC) 448 #if defined(ENABLE_WEBRTC)
443 base::Callback<void(const std::string&)> webrtc_log_message_callback_; 449 base::Callback<void(const std::string&)> webrtc_log_message_callback_;
444 450
445 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; 451 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_;
446 452
453 // Must be accessed on UI thread.
454 std::vector<int> aec_dump_consumers_;
455
447 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; 456 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_;
448 #endif 457 #endif
449 458
450 int worker_ref_count_; 459 int worker_ref_count_;
451 460
452 // Records the time when the process starts surviving for workers for UMA. 461 // Records the time when the process starts surviving for workers for UMA.
453 base::TimeTicks survive_for_worker_start_time_; 462 base::TimeTicks survive_for_worker_start_time_;
454 463
455 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 464 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
456 465
457 #if defined(OS_MACOSX) 466 #if defined(OS_MACOSX)
458 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; 467 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_;
459 #endif 468 #endif
460 469
461 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 470 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
462 }; 471 };
463 472
464 } // namespace content 473 } // namespace content
465 474
466 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 475 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/media/webrtc_browsertest.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