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

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

Issue 6811022: Add IPC plumbing code for Quota API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments reflected Created 9 years, 8 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 | chrome/chrome_common.gypi » ('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 "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 #include "content/browser/plugin_service.h" 73 #include "content/browser/plugin_service.h"
74 #include "content/browser/renderer_host/audio_renderer_host.h" 74 #include "content/browser/renderer_host/audio_renderer_host.h"
75 #include "content/browser/renderer_host/blob_message_filter.h" 75 #include "content/browser/renderer_host/blob_message_filter.h"
76 #include "content/browser/renderer_host/clipboard_message_filter.h" 76 #include "content/browser/renderer_host/clipboard_message_filter.h"
77 #include "content/browser/renderer_host/database_message_filter.h" 77 #include "content/browser/renderer_host/database_message_filter.h"
78 #include "content/browser/renderer_host/file_utilities_message_filter.h" 78 #include "content/browser/renderer_host/file_utilities_message_filter.h"
79 #include "content/browser/renderer_host/gpu_message_filter.h" 79 #include "content/browser/renderer_host/gpu_message_filter.h"
80 #include "content/browser/renderer_host/p2p_sockets_host.h" 80 #include "content/browser/renderer_host/p2p_sockets_host.h"
81 #include "content/browser/renderer_host/pepper_file_message_filter.h" 81 #include "content/browser/renderer_host/pepper_file_message_filter.h"
82 #include "content/browser/renderer_host/pepper_message_filter.h" 82 #include "content/browser/renderer_host/pepper_message_filter.h"
83 #include "content/browser/renderer_host/quota_dispatcher_host.h"
83 #include "content/browser/renderer_host/render_message_filter.h" 84 #include "content/browser/renderer_host/render_message_filter.h"
84 #include "content/browser/renderer_host/render_view_host.h" 85 #include "content/browser/renderer_host/render_view_host.h"
85 #include "content/browser/renderer_host/render_view_host_delegate.h" 86 #include "content/browser/renderer_host/render_view_host_delegate.h"
86 #include "content/browser/renderer_host/render_widget_helper.h" 87 #include "content/browser/renderer_host/render_widget_helper.h"
87 #include "content/browser/renderer_host/render_widget_host.h" 88 #include "content/browser/renderer_host/render_widget_host.h"
88 #include "content/browser/renderer_host/resource_message_filter.h" 89 #include "content/browser/renderer_host/resource_message_filter.h"
89 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 90 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
90 #include "content/browser/speech/speech_input_dispatcher_host.h" 91 #include "content/browser/speech/speech_input_dispatcher_host.h"
91 #include "content/browser/trace_message_filter.h" 92 #include "content/browser/trace_message_filter.h"
92 #include "content/browser/worker_host/worker_message_filter.h" 93 #include "content/browser/worker_host/worker_message_filter.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 profile()->GetRequestContext(), 510 profile()->GetRequestContext(),
510 g_browser_process->resource_dispatcher_host(), 511 g_browser_process->resource_dispatcher_host(),
511 NewCallbackWithReturnValue( 512 NewCallbackWithReturnValue(
512 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID))); 513 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID)));
513 514
514 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableP2PApi)) 515 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableP2PApi))
515 channel_->AddFilter(new P2PSocketsHost()); 516 channel_->AddFilter(new P2PSocketsHost());
516 517
517 channel_->AddFilter(new TraceMessageFilter()); 518 channel_->AddFilter(new TraceMessageFilter());
518 channel_->AddFilter(new ResolveProxyMsgHelper(NULL)); 519 channel_->AddFilter(new ResolveProxyMsgHelper(NULL));
520 channel_->AddFilter(new QuotaDispatcherHost());
519 } 521 }
520 522
521 int BrowserRenderProcessHost::GetNextRoutingID() { 523 int BrowserRenderProcessHost::GetNextRoutingID() {
522 return widget_helper_->GetNextRoutingID(); 524 return widget_helper_->GetNextRoutingID();
523 } 525 }
524 526
525 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { 527 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) {
526 widget_helper_->CancelResourceRequests(render_widget_id); 528 widget_helper_->CancelResourceRequests(render_widget_id);
527 } 529 }
528 530
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 IPC::PlatformFileForTransit file; 1318 IPC::PlatformFileForTransit file;
1317 #if defined(OS_POSIX) 1319 #if defined(OS_POSIX)
1318 file = base::FileDescriptor(model_file, false); 1320 file = base::FileDescriptor(model_file, false);
1319 #elif defined(OS_WIN) 1321 #elif defined(OS_WIN)
1320 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1322 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1321 false, DUPLICATE_SAME_ACCESS); 1323 false, DUPLICATE_SAME_ACCESS);
1322 #endif 1324 #endif
1323 Send(new SafeBrowsingMsg_SetPhishingModel(file)); 1325 Send(new SafeBrowsingMsg_SetPhishingModel(file));
1324 } 1326 }
1325 } 1327 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698