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

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

Issue 9702014: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make sure to initialize all primitive fields Created 8 years, 9 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 #endif 533 #endif
534 534
535 channel_->AddFilter(new TraceMessageFilter()); 535 channel_->AddFilter(new TraceMessageFilter());
536 channel_->AddFilter(new ResolveProxyMsgHelper( 536 channel_->AddFilter(new ResolveProxyMsgHelper(
537 browser_context->GetRequestContextForRenderProcess(GetID()))); 537 browser_context->GetRequestContextForRenderProcess(GetID())));
538 channel_->AddFilter(new QuotaDispatcherHost( 538 channel_->AddFilter(new QuotaDispatcherHost(
539 GetID(), 539 GetID(),
540 content::BrowserContext::GetQuotaManager(browser_context), 540 content::BrowserContext::GetQuotaManager(browser_context),
541 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); 541 content::GetContentClient()->browser()->CreateQuotaPermissionContext()));
542 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); 542 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this));
543 channel_->AddFilter(new ProfilerMessageFilter()); 543 channel_->AddFilter(new content::ProfilerMessageFilter(
544 content::PROCESS_TYPE_RENDERER));
544 } 545 }
545 546
546 int RenderProcessHostImpl::GetNextRoutingID() { 547 int RenderProcessHostImpl::GetNextRoutingID() {
547 return widget_helper_->GetNextRoutingID(); 548 return widget_helper_->GetNextRoutingID();
548 } 549 }
549 550
550 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { 551 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) {
551 widget_helper_->CancelResourceRequests(render_widget_id); 552 widget_helper_->CancelResourceRequests(render_widget_id);
552 } 553 }
553 554
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1366 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1366 // Only honor the request if appropriate persmissions are granted. 1367 // Only honor the request if appropriate persmissions are granted.
1367 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1368 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1368 path)) 1369 path))
1369 content::GetContentClient()->browser()->OpenItem(path); 1370 content::GetContentClient()->browser()->OpenItem(path);
1370 } 1371 }
1371 1372
1372 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1373 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1373 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); 1374 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size);
1374 } 1375 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698