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

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

Issue 7715020: Move P2P code to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_dispatcher_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser_render_process_host.h" 8 #include "content/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 402
403 channel_->AddFilter( 403 channel_->AddFilter(
404 new WorkerMessageFilter( 404 new WorkerMessageFilter(
405 id(), 405 id(),
406 &browser_context()->GetResourceContext(), 406 &browser_context()->GetResourceContext(),
407 content::GetContentClient()->browser()->GetResourceDispatcherHost(), 407 content::GetContentClient()->browser()->GetResourceDispatcherHost(),
408 NewCallbackWithReturnValue( 408 NewCallbackWithReturnValue(
409 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID))); 409 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID)));
410 410
411 #if defined(ENABLE_P2P_APIS) 411 #if defined(ENABLE_P2P_APIS)
412 channel_->AddFilter(new P2PSocketDispatcherHost( 412 channel_->AddFilter(new content::P2PSocketDispatcherHost(
413 &browser_context()->GetResourceContext())); 413 &browser_context()->GetResourceContext()));
414 #endif 414 #endif
415 415
416 channel_->AddFilter(new TraceMessageFilter()); 416 channel_->AddFilter(new TraceMessageFilter());
417 channel_->AddFilter(new ResolveProxyMsgHelper(NULL)); 417 channel_->AddFilter(new ResolveProxyMsgHelper(NULL));
418 channel_->AddFilter(new QuotaDispatcherHost( 418 channel_->AddFilter(new QuotaDispatcherHost(
419 id(), browser_context()->GetQuotaManager(), 419 id(), browser_context()->GetQuotaManager(),
420 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); 420 content::GetContentClient()->browser()->CreateQuotaPermissionContext()));
421 } 421 }
422 422
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 928 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
929 // Only honor the request if appropriate persmissions are granted. 929 // Only honor the request if appropriate persmissions are granted.
930 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 930 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
931 content::GetContentClient()->browser()->OpenItem(path); 931 content::GetContentClient()->browser()->OpenItem(path);
932 } 932 }
933 933
934 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { 934 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) {
935 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 935 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
936 MHTMLGenerated(job_id, success); 936 MHTMLGenerated(job_id, success);
937 } 937 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698