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

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

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Streamlining: Moving ResourceContext& from DOMStorageContext to DOMMessageFilter. 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 | « content/browser/mock_resource_context.cc ('k') | content/browser/resource_context.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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 content::GetContentClient()->browser()->GetResourceDispatcherHost()); 355 content::GetContentClient()->browser()->GetResourceDispatcherHost());
356 356
357 channel_->AddFilter(resource_message_filter); 357 channel_->AddFilter(resource_message_filter);
358 channel_->AddFilter(new AudioInputRendererHost()); 358 channel_->AddFilter(new AudioInputRendererHost());
359 channel_->AddFilter(new AudioRendererHost(&profile()->GetResourceContext())); 359 channel_->AddFilter(new AudioRendererHost(&profile()->GetResourceContext()));
360 channel_->AddFilter(new VideoCaptureHost()); 360 channel_->AddFilter(new VideoCaptureHost());
361 channel_->AddFilter( 361 channel_->AddFilter(
362 new AppCacheDispatcherHost(&profile()->GetResourceContext(), id())); 362 new AppCacheDispatcherHost(&profile()->GetResourceContext(), id()));
363 channel_->AddFilter(new ClipboardMessageFilter()); 363 channel_->AddFilter(new ClipboardMessageFilter());
364 channel_->AddFilter( 364 channel_->AddFilter(
365 new DOMStorageMessageFilter(id(), profile()->GetWebKitContext())); 365 new DOMStorageMessageFilter(id(),
366 profile()->GetWebKitContext(),
367 profile()->GetResourceContext()));
366 channel_->AddFilter( 368 channel_->AddFilter(
367 new IndexedDBDispatcherHost(id(), profile()->GetWebKitContext())); 369 new IndexedDBDispatcherHost(id(), profile()->GetWebKitContext()));
368 channel_->AddFilter( 370 channel_->AddFilter(
369 GeolocationDispatcherHost::New( 371 GeolocationDispatcherHost::New(
370 id(), profile()->GetGeolocationPermissionContext())); 372 id(), profile()->GetGeolocationPermissionContext()));
371 channel_->AddFilter(new GpuMessageFilter(id(), widget_helper_.get())); 373 channel_->AddFilter(new GpuMessageFilter(id(), widget_helper_.get()));
372 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(id())); 374 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(id()));
373 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); 375 channel_->AddFilter(new PepperFileMessageFilter(id(), profile()));
374 channel_->AddFilter( 376 channel_->AddFilter(
375 new PepperMessageFilter(&profile()->GetResourceContext())); 377 new PepperMessageFilter(&profile()->GetResourceContext()));
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 919 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
918 // Only honor the request if appropriate persmissions are granted. 920 // Only honor the request if appropriate persmissions are granted.
919 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 921 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
920 content::GetContentClient()->browser()->RevealFolderInOS(path); 922 content::GetContentClient()->browser()->RevealFolderInOS(path);
921 } 923 }
922 924
923 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { 925 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) {
924 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 926 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
925 MHTMLGenerated(job_id, success); 927 MHTMLGenerated(job_id, success);
926 } 928 }
OLDNEW
« no previous file with comments | « content/browser/mock_resource_context.cc ('k') | content/browser/resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698