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

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

Issue 1930393002: Switch stream creation and closing in Chrome audio rendering from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + tests in progress Created 4 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
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // IPC::Listener via RenderProcessHost. 175 // IPC::Listener via RenderProcessHost.
176 bool OnMessageReceived(const IPC::Message& msg) override; 176 bool OnMessageReceived(const IPC::Message& msg) override;
177 void OnChannelConnected(int32_t peer_pid) override; 177 void OnChannelConnected(int32_t peer_pid) override;
178 void OnChannelError() override; 178 void OnChannelError() override;
179 void OnBadMessageReceived(const IPC::Message& message) override; 179 void OnBadMessageReceived(const IPC::Message& message) override;
180 180
181 // ChildProcessLauncher::Client implementation. 181 // ChildProcessLauncher::Client implementation.
182 void OnProcessLaunched() override; 182 void OnProcessLaunched() override;
183 void OnProcessLaunchFailed(int error_code) override; 183 void OnProcessLaunchFailed(int error_code) override;
184 184
185 scoped_refptr<AudioRendererHost> audio_renderer_host() const; 185 scoped_refptr<AudioRendererHost> audio_renderer_host() const override;
186 186
187 // Call this function when it is evident that the child process is actively 187 // Call this function when it is evident that the child process is actively
188 // performing some operation, for example if we just received an IPC message. 188 // performing some operation, for example if we just received an IPC message.
189 void mark_child_process_activity_time() { 189 void mark_child_process_activity_time() {
190 child_process_activity_time_ = base::TimeTicks::Now(); 190 child_process_activity_time_ = base::TimeTicks::Now();
191 } 191 }
192 192
193 // Used to extend the lifetime of the sessions until the render view 193 // Used to extend the lifetime of the sessions until the render view
194 // in the renderer is fully closed. This is static because its also called 194 // in the renderer is fully closed. This is static because its also called
195 // with mock hosts as input in test cases. 195 // with mock hosts as input in test cases.
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
515 515
516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
517 517
518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
519 }; 519 };
520 520
521 } // namespace content 521 } // namespace content
522 522
523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698