| OLD | NEW |
| 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/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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 channel_->AddFilter(new content::P2PSocketDispatcherHost( | 531 channel_->AddFilter(new content::P2PSocketDispatcherHost( |
| 532 &GetBrowserContext()->GetResourceContext())); | 532 &GetBrowserContext()->GetResourceContext())); |
| 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 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()))); | 537 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()))); |
| 538 channel_->AddFilter(new QuotaDispatcherHost( | 538 channel_->AddFilter(new QuotaDispatcherHost( |
| 539 GetID(), GetBrowserContext()->GetQuotaManager(), | 539 GetID(), GetBrowserContext()->GetQuotaManager(), |
| 540 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); | 540 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 541 channel_->AddFilter(new GamepadBrowserMessageFilter); | 541 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); |
| 542 channel_->AddFilter(new ProfilerMessageFilter()); | 542 channel_->AddFilter(new ProfilerMessageFilter()); |
| 543 } | 543 } |
| 544 | 544 |
| 545 int RenderProcessHostImpl::GetNextRoutingID() { | 545 int RenderProcessHostImpl::GetNextRoutingID() { |
| 546 return widget_helper_->GetNextRoutingID(); | 546 return widget_helper_->GetNextRoutingID(); |
| 547 } | 547 } |
| 548 | 548 |
| 549 void RenderProcessHostImpl::UpdateAndSendMaxPageID(int32 page_id) { | 549 void RenderProcessHostImpl::UpdateAndSendMaxPageID(int32 page_id) { |
| 550 if (page_id > max_page_id_) | 550 if (page_id > max_page_id_) |
| 551 Send(new ViewMsg_SetNextPageID(page_id + 1)); | 551 Send(new ViewMsg_SetNextPageID(page_id + 1)); |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1320 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1320 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
| 1321 // Only honor the request if appropriate persmissions are granted. | 1321 // Only honor the request if appropriate persmissions are granted. |
| 1322 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1322 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
| 1323 content::GetContentClient()->browser()->OpenItem(path); | 1323 content::GetContentClient()->browser()->OpenItem(path); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1326 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1327 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1327 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 1328 MHTMLGenerated(job_id, data_size); | 1328 MHTMLGenerated(job_id, data_size); |
| 1329 } | 1329 } |
| OLD | NEW |