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

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

Issue 9379002: Move socket API restriction check to browser process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), 464 channel_->AddFilter(new DOMStorageMessageFilter(GetID(),
465 browser_context->GetWebKitContext())); 465 browser_context->GetWebKitContext()));
466 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), 466 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(),
467 browser_context->GetWebKitContext())); 467 browser_context->GetWebKitContext()));
468 channel_->AddFilter(GeolocationDispatcherHost::New( 468 channel_->AddFilter(GeolocationDispatcherHost::New(
469 GetID(), browser_context->GetGeolocationPermissionContext())); 469 GetID(), browser_context->GetGeolocationPermissionContext()));
470 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get())); 470 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get()));
471 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( 471 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(
472 resource_context, GetID())); 472 resource_context, GetID()));
473 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); 473 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context));
474 channel_->AddFilter(new PepperMessageFilter(resource_context)); 474 channel_->AddFilter(new PepperMessageFilter(GetID(), resource_context));
475 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost( 475 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(
476 GetID(), browser_context->GetRequestContext(), 476 GetID(), browser_context->GetRequestContext(),
477 browser_context->GetSpeechInputPreferences(), resource_context)); 477 browser_context->GetSpeechInputPreferences(), resource_context));
478 channel_->AddFilter(new FileSystemDispatcherHost( 478 channel_->AddFilter(new FileSystemDispatcherHost(
479 browser_context->GetRequestContext(), 479 browser_context->GetRequestContext(),
480 browser_context->GetFileSystemContext())); 480 browser_context->GetFileSystemContext()));
481 channel_->AddFilter(new device_orientation::MessageFilter()); 481 channel_->AddFilter(new device_orientation::MessageFilter());
482 channel_->AddFilter(new BlobMessageFilter(GetID(), 482 channel_->AddFilter(new BlobMessageFilter(GetID(),
483 browser_context->GetBlobStorageContext())); 483 browser_context->GetBlobStorageContext()));
484 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 484 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 // Only honor the request if appropriate persmissions are granted. 1290 // Only honor the request if appropriate persmissions are granted.
1291 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1291 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1292 path)) 1292 path))
1293 content::GetContentClient()->browser()->OpenItem(path); 1293 content::GetContentClient()->browser()->OpenItem(path);
1294 } 1294 }
1295 1295
1296 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1296 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1297 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1297 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1298 MHTMLGenerated(job_id, data_size); 1298 MHTMLGenerated(job_id, data_size);
1299 } 1299 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper_udp_socket.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698