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

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: nit 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), 468 channel_->AddFilter(new DOMStorageMessageFilter(GetID(),
469 browser_context->GetWebKitContext())); 469 browser_context->GetWebKitContext()));
470 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), 470 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(),
471 browser_context->GetWebKitContext())); 471 browser_context->GetWebKitContext()));
472 channel_->AddFilter(GeolocationDispatcherHost::New( 472 channel_->AddFilter(GeolocationDispatcherHost::New(
473 GetID(), browser_context->GetGeolocationPermissionContext())); 473 GetID(), browser_context->GetGeolocationPermissionContext()));
474 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get())); 474 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get()));
475 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( 475 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(
476 resource_context, GetID())); 476 resource_context, GetID()));
477 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); 477 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context));
478 channel_->AddFilter(new PepperMessageFilter(resource_context)); 478 channel_->AddFilter(new PepperMessageFilter(GetID(), resource_context));
479 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost( 479 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(
480 GetID(), browser_context->GetRequestContext(), 480 GetID(), browser_context->GetRequestContext(),
481 browser_context->GetSpeechInputPreferences(), resource_context)); 481 browser_context->GetSpeechInputPreferences(), resource_context));
482 channel_->AddFilter(new FileSystemDispatcherHost( 482 channel_->AddFilter(new FileSystemDispatcherHost(
483 browser_context->GetRequestContext(), 483 browser_context->GetRequestContext(),
484 browser_context->GetFileSystemContext())); 484 browser_context->GetFileSystemContext()));
485 channel_->AddFilter(new device_orientation::MessageFilter()); 485 channel_->AddFilter(new device_orientation::MessageFilter());
486 channel_->AddFilter(new BlobMessageFilter(GetID(), 486 channel_->AddFilter(new BlobMessageFilter(GetID(),
487 browser_context->GetBlobStorageContext())); 487 browser_context->GetBlobStorageContext()));
488 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 488 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 // Only honor the request if appropriate persmissions are granted. 1294 // Only honor the request if appropriate persmissions are granted.
1295 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1295 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1296 path)) 1296 path))
1297 content::GetContentClient()->browser()->OpenItem(path); 1297 content::GetContentClient()->browser()->OpenItem(path);
1298 } 1298 }
1299 1299
1300 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1300 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1301 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1301 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1302 MHTMLGenerated(job_id, data_size); 1302 MHTMLGenerated(job_id, data_size);
1303 } 1303 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698