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

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

Issue 119463003: Rename ContentBrowserClient::RenderProcessHostCreated to RenderProcessWillLaunch. It is called each… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 const std::string channel_id = 513 const std::string channel_id =
514 IPC::Channel::GenerateVerifiedChannelID(std::string()); 514 IPC::Channel::GenerateVerifiedChannelID(std::string());
515 channel_.reset( 515 channel_.reset(
516 new IPC::ChannelProxy(channel_id, 516 new IPC::ChannelProxy(channel_id,
517 IPC::Channel::MODE_SERVER, 517 IPC::Channel::MODE_SERVER,
518 this, 518 this,
519 BrowserThread::GetMessageLoopProxyForThread( 519 BrowserThread::GetMessageLoopProxyForThread(
520 BrowserThread::IO).get())); 520 BrowserThread::IO).get()));
521 521
522 // Call the embedder first so that their IPC filters have priority. 522 // Call the embedder first so that their IPC filters have priority.
523 GetContentClient()->browser()->RenderProcessHostCreated(this); 523 GetContentClient()->browser()->RenderProcessWillLaunch(this);
524 524
525 CreateMessageFilters(); 525 CreateMessageFilters();
526 526
527 if (run_renderer_in_process()) { 527 if (run_renderer_in_process()) {
528 DCHECK(g_renderer_main_thread_factory); 528 DCHECK(g_renderer_main_thread_factory);
529 // Crank up a thread and run the initialization there. With the way that 529 // Crank up a thread and run the initialization there. With the way that
530 // messages flow between the browser and renderer, this thread is required 530 // messages flow between the browser and renderer, this thread is required
531 // to prevent a deadlock in single-process mode. Since the primordial 531 // to prevent a deadlock in single-process mode. Since the primordial
532 // thread in the renderer process runs the WebKit code and can sometimes 532 // thread in the renderer process runs the WebKit code and can sometimes
533 // make blocking calls to the UI thread (i.e. this thread), they need to run 533 // make blocking calls to the UI thread (i.e. this thread), they need to run
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 #if defined(ENABLE_WEBRTC) 1960 #if defined(ENABLE_WEBRTC)
1961 void RenderProcessHostImpl::SendAecDumpFileToRenderer( 1961 void RenderProcessHostImpl::SendAecDumpFileToRenderer(
1962 IPC::PlatformFileForTransit file_for_transit) { 1962 IPC::PlatformFileForTransit file_for_transit) {
1963 if (file_for_transit == IPC::InvalidPlatformFileForTransit()) 1963 if (file_for_transit == IPC::InvalidPlatformFileForTransit())
1964 return; 1964 return;
1965 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); 1965 Send(new MediaStreamMsg_EnableAecDump(file_for_transit));
1966 } 1966 }
1967 #endif 1967 #endif
1968 1968
1969 } // namespace content 1969 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698