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 "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 30 matching lines...) Expand all Loading... |
41 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" | 41 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" |
42 #include "chrome/browser/gpu_process_host.h" | 42 #include "chrome/browser/gpu_process_host.h" |
43 #include "chrome/browser/history/history.h" | 43 #include "chrome/browser/history/history.h" |
44 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h" | 44 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h" |
45 #include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 45 #include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
46 #include "chrome/browser/io_thread.h" | 46 #include "chrome/browser/io_thread.h" |
47 #include "chrome/browser/metrics/user_metrics.h" | 47 #include "chrome/browser/metrics/user_metrics.h" |
48 #include "chrome/browser/mime_registry_message_filter.h" | 48 #include "chrome/browser/mime_registry_message_filter.h" |
49 #include "chrome/browser/platform_util.h" | 49 #include "chrome/browser/platform_util.h" |
50 #include "chrome/browser/plugin_service.h" | 50 #include "chrome/browser/plugin_service.h" |
| 51 #include "chrome/browser/printing/printing_message_filter.h" |
51 #include "chrome/browser/profiles/profile.h" | 52 #include "chrome/browser/profiles/profile.h" |
52 #include "chrome/browser/renderer_host/audio_renderer_host.h" | 53 #include "chrome/browser/renderer_host/audio_renderer_host.h" |
53 #include "chrome/browser/renderer_host/blob_message_filter.h" | 54 #include "chrome/browser/renderer_host/blob_message_filter.h" |
54 #include "chrome/browser/renderer_host/database_message_filter.h" | 55 #include "chrome/browser/renderer_host/database_message_filter.h" |
55 #include "chrome/browser/renderer_host/file_utilities_message_filter.h" | 56 #include "chrome/browser/renderer_host/file_utilities_message_filter.h" |
56 #include "chrome/browser/renderer_host/gpu_message_filter.h" | 57 #include "chrome/browser/renderer_host/gpu_message_filter.h" |
57 #include "chrome/browser/renderer_host/pepper_file_message_filter.h" | 58 #include "chrome/browser/renderer_host/pepper_file_message_filter.h" |
58 #include "chrome/browser/renderer_host/pepper_message_filter.h" | 59 #include "chrome/browser/renderer_host/pepper_message_filter.h" |
59 #include "chrome/browser/renderer_host/render_message_filter.h" | 60 #include "chrome/browser/renderer_host/render_message_filter.h" |
60 #include "chrome/browser/renderer_host/render_view_host.h" | 61 #include "chrome/browser/renderer_host/render_view_host.h" |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 channel_->AddFilter( | 452 channel_->AddFilter( |
452 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); | 453 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); |
453 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile())); | 454 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile())); |
454 channel_->AddFilter(new IndexedDBDispatcherHost(id(), profile())); | 455 channel_->AddFilter(new IndexedDBDispatcherHost(id(), profile())); |
455 channel_->AddFilter( | 456 channel_->AddFilter( |
456 GeolocationDispatcherHost::New( | 457 GeolocationDispatcherHost::New( |
457 id(), profile()->GetGeolocationPermissionContext())); | 458 id(), profile()->GetGeolocationPermissionContext())); |
458 channel_->AddFilter(new GpuMessageFilter(id())); | 459 channel_->AddFilter(new GpuMessageFilter(id())); |
459 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); | 460 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); |
460 channel_->AddFilter(new PepperMessageFilter(profile())); | 461 channel_->AddFilter(new PepperMessageFilter(profile())); |
| 462 channel_->AddFilter(new PrintingMessageFilter()); |
461 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id())); | 463 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id())); |
462 channel_->AddFilter( | 464 channel_->AddFilter( |
463 new SearchProviderInstallStateMessageFilter(id(), profile())); | 465 new SearchProviderInstallStateMessageFilter(id(), profile())); |
464 channel_->AddFilter(new FileSystemDispatcherHost(profile())); | 466 channel_->AddFilter(new FileSystemDispatcherHost(profile())); |
465 channel_->AddFilter(new device_orientation::MessageFilter()); | 467 channel_->AddFilter(new device_orientation::MessageFilter()); |
466 channel_->AddFilter( | 468 channel_->AddFilter( |
467 new BlobMessageFilter(id(), profile()->GetBlobStorageContext())); | 469 new BlobMessageFilter(id(), profile()->GetBlobStorageContext())); |
468 channel_->AddFilter(new FileUtilitiesMessageFilter(id())); | 470 channel_->AddFilter(new FileUtilitiesMessageFilter(id())); |
469 channel_->AddFilter(new MimeRegistryMessageFilter()); | 471 channel_->AddFilter(new MimeRegistryMessageFilter()); |
470 channel_->AddFilter(new DatabaseMessageFilter( | 472 channel_->AddFilter(new DatabaseMessageFilter( |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 IPC::PlatformFileForTransit file; | 1282 IPC::PlatformFileForTransit file; |
1281 #if defined(OS_POSIX) | 1283 #if defined(OS_POSIX) |
1282 file = base::FileDescriptor(model_file, false); | 1284 file = base::FileDescriptor(model_file, false); |
1283 #elif defined(OS_WIN) | 1285 #elif defined(OS_WIN) |
1284 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1286 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1285 false, DUPLICATE_SAME_ACCESS); | 1287 false, DUPLICATE_SAME_ACCESS); |
1286 #endif | 1288 #endif |
1287 Send(new ViewMsg_SetPhishingModel(file)); | 1289 Send(new ViewMsg_SetPhishingModel(file)); |
1288 } | 1290 } |
1289 } | 1291 } |
OLD | NEW |