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/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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 new RendererURLRequestContextSelector(profile(), id()), | 350 new RendererURLRequestContextSelector(profile(), id()), |
351 g_browser_process->resource_dispatcher_host()); | 351 g_browser_process->resource_dispatcher_host()); |
352 | 352 |
353 channel_->AddFilter(resource_message_filter); | 353 channel_->AddFilter(resource_message_filter); |
354 channel_->AddFilter(new AudioInputRendererHost()); | 354 channel_->AddFilter(new AudioInputRendererHost()); |
355 channel_->AddFilter(new AudioRendererHost()); | 355 channel_->AddFilter(new AudioRendererHost()); |
356 channel_->AddFilter( | 356 channel_->AddFilter( |
357 new AppCacheDispatcherHost(&profile()->GetResourceContext(), id())); | 357 new AppCacheDispatcherHost(&profile()->GetResourceContext(), id())); |
358 channel_->AddFilter(new ClipboardMessageFilter()); | 358 channel_->AddFilter(new ClipboardMessageFilter()); |
359 channel_->AddFilter( | 359 channel_->AddFilter( |
360 new DOMStorageMessageFilter(id(), profile()->GetWebKitContext(), | 360 new DOMStorageMessageFilter(id(), profile()->GetWebKitContext())); |
361 profile()->GetHostContentSettingsMap())); | |
362 channel_->AddFilter( | 361 channel_->AddFilter( |
363 new IndexedDBDispatcherHost(id(), profile()->GetWebKitContext(), | 362 new IndexedDBDispatcherHost(id(), profile()->GetWebKitContext(), |
364 profile()->GetHostContentSettingsMap())); | 363 profile()->GetHostContentSettingsMap())); |
365 channel_->AddFilter( | 364 channel_->AddFilter( |
366 GeolocationDispatcherHost::New( | 365 GeolocationDispatcherHost::New( |
367 id(), profile()->GetGeolocationPermissionContext())); | 366 id(), profile()->GetGeolocationPermissionContext())); |
368 channel_->AddFilter(new GpuMessageFilter(id())); | 367 channel_->AddFilter(new GpuMessageFilter(id())); |
369 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); | 368 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); |
370 channel_->AddFilter( | 369 channel_->AddFilter( |
371 new PepperMessageFilter(&profile()->GetResourceContext())); | 370 new PepperMessageFilter(&profile()->GetResourceContext())); |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 while (!queued_messages_.empty()) { | 932 while (!queued_messages_.empty()) { |
934 Send(queued_messages_.front()); | 933 Send(queued_messages_.front()); |
935 queued_messages_.pop(); | 934 queued_messages_.pop(); |
936 } | 935 } |
937 } | 936 } |
938 | 937 |
939 void BrowserRenderProcessHost::OnUserMetricsRecordAction( | 938 void BrowserRenderProcessHost::OnUserMetricsRecordAction( |
940 const std::string& action) { | 939 const std::string& action) { |
941 UserMetrics::RecordComputedAction(action); | 940 UserMetrics::RecordComputedAction(action); |
942 } | 941 } |
OLD | NEW |