| 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 23 matching lines...) Expand all Loading... |
| 34 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 34 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 35 #include "chrome/browser/extensions/extension_message_service.h" | 35 #include "chrome/browser/extensions/extension_message_service.h" |
| 36 #include "chrome/browser/extensions/extension_service.h" | 36 #include "chrome/browser/extensions/extension_service.h" |
| 37 #include "chrome/browser/extensions/user_script_master.h" | 37 #include "chrome/browser/extensions/user_script_master.h" |
| 38 #include "chrome/browser/file_system/file_system_dispatcher_host.h" | 38 #include "chrome/browser/file_system/file_system_dispatcher_host.h" |
| 39 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" | 39 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" |
| 40 #include "chrome/browser/history/history.h" | 40 #include "chrome/browser/history/history.h" |
| 41 #include "chrome/browser/io_thread.h" | 41 #include "chrome/browser/io_thread.h" |
| 42 #include "chrome/browser/metrics/user_metrics.h" | 42 #include "chrome/browser/metrics/user_metrics.h" |
| 43 #include "chrome/browser/platform_util.h" | 43 #include "chrome/browser/platform_util.h" |
| 44 #include "chrome/browser/printing/printing_message_filter.h" |
| 44 #include "chrome/browser/profiles/profile.h" | 45 #include "chrome/browser/profiles/profile.h" |
| 45 #include "chrome/browser/renderer_host/web_cache_manager.h" | 46 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 46 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 47 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
| 47 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" | 48 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" |
| 48 #include "chrome/browser/speech/speech_input_dispatcher_host.h" | 49 #include "chrome/browser/speech/speech_input_dispatcher_host.h" |
| 49 #include "chrome/browser/speech/speech_input_manager.h" | 50 #include "chrome/browser/speech/speech_input_manager.h" |
| 50 #include "chrome/browser/spellcheck_host.h" | 51 #include "chrome/browser/spellcheck_host.h" |
| 51 #include "chrome/browser/spellcheck_message_filter.h" | 52 #include "chrome/browser/spellcheck_message_filter.h" |
| 52 #include "chrome/browser/metrics/user_metrics.h" | 53 #include "chrome/browser/metrics/user_metrics.h" |
| 53 #include "chrome/browser/visitedlink/visitedlink_master.h" | 54 #include "chrome/browser/visitedlink/visitedlink_master.h" |
| (...skipping 397 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 |