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

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

Issue 9181002: Track parent-child relations during profiling (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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 // 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 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 } 904 }
905 return listener->OnMessageReceived(msg); 905 return listener->OnMessageReceived(msg);
906 } 906 }
907 907
908 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { 908 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) {
909 #if defined(IPC_MESSAGE_LOG_ENABLED) 909 #if defined(IPC_MESSAGE_LOG_ENABLED)
910 Send(new ChildProcessMsg_SetIPCLoggingEnabled( 910 Send(new ChildProcessMsg_SetIPCLoggingEnabled(
911 IPC::Logging::GetInstance()->Enabled())); 911 IPC::Logging::GetInstance()->Enabled()));
912 #endif 912 #endif
913 913
914 bool enable = tracked_objects::ThreadData::tracking_status(); 914 tracked_objects::ThreadData::Status status =
915 Send(new ChildProcessMsg_SetProfilerStatus(enable)); 915 tracked_objects::ThreadData::status();
916 Send(new ChildProcessMsg_SetProfilerStatus(status));
916 } 917 }
917 918
918 void RenderProcessHostImpl::OnChannelError() { 919 void RenderProcessHostImpl::OnChannelError() {
919 if (!channel_.get()) 920 if (!channel_.get())
920 return; 921 return;
921 922
922 // Store the handle before it gets changed. 923 // Store the handle before it gets changed.
923 base::ProcessHandle handle = GetHandle(); 924 base::ProcessHandle handle = GetHandle();
924 925
925 // child_process_launcher_ can be NULL in single process mode or if fast 926 // child_process_launcher_ can be NULL in single process mode or if fast
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1298 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1298 // Only honor the request if appropriate persmissions are granted. 1299 // Only honor the request if appropriate persmissions are granted.
1299 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) 1300 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path))
1300 content::GetContentClient()->browser()->OpenItem(path); 1301 content::GetContentClient()->browser()->OpenItem(path);
1301 } 1302 }
1302 1303
1303 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1304 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1304 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1305 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1305 MHTMLGenerated(job_id, data_size); 1306 MHTMLGenerated(job_id, data_size);
1306 } 1307 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698