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

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

Issue 5722003: Make DOMStorageDispatcherHost be a message filter (and rename it accordingly)... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get rid of _DELAY_HANDLE macro Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 21 matching lines...) Expand all
32 #include "chrome/browser/child_process_security_policy.h" 32 #include "chrome/browser/child_process_security_policy.h"
33 #include "chrome/browser/device_orientation/message_filter.h" 33 #include "chrome/browser/device_orientation/message_filter.h"
34 #include "chrome/browser/extensions/extension_event_router.h" 34 #include "chrome/browser/extensions/extension_event_router.h"
35 #include "chrome/browser/extensions/extension_function_dispatcher.h" 35 #include "chrome/browser/extensions/extension_function_dispatcher.h"
36 #include "chrome/browser/extensions/extension_message_service.h" 36 #include "chrome/browser/extensions/extension_message_service.h"
37 #include "chrome/browser/extensions/extensions_service.h" 37 #include "chrome/browser/extensions/extensions_service.h"
38 #include "chrome/browser/extensions/user_script_master.h" 38 #include "chrome/browser/extensions/user_script_master.h"
39 #include "chrome/browser/file_system/file_system_dispatcher_host.h" 39 #include "chrome/browser/file_system/file_system_dispatcher_host.h"
40 #include "chrome/browser/gpu_process_host.h" 40 #include "chrome/browser/gpu_process_host.h"
41 #include "chrome/browser/history/history.h" 41 #include "chrome/browser/history/history.h"
42 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h"
42 #include "chrome/browser/io_thread.h" 43 #include "chrome/browser/io_thread.h"
43 #include "chrome/browser/mime_registry_message_filter.h" 44 #include "chrome/browser/mime_registry_message_filter.h"
44 #include "chrome/browser/platform_util.h" 45 #include "chrome/browser/platform_util.h"
45 #include "chrome/browser/plugin_service.h" 46 #include "chrome/browser/plugin_service.h"
46 #include "chrome/browser/profiles/profile.h" 47 #include "chrome/browser/profiles/profile.h"
47 #include "chrome/browser/renderer_host/audio_renderer_host.h" 48 #include "chrome/browser/renderer_host/audio_renderer_host.h"
48 #include "chrome/browser/renderer_host/blob_message_filter.h" 49 #include "chrome/browser/renderer_host/blob_message_filter.h"
49 #include "chrome/browser/renderer_host/file_utilities_message_filter.h" 50 #include "chrome/browser/renderer_host/file_utilities_message_filter.h"
50 #include "chrome/browser/renderer_host/pepper_file_message_filter.h" 51 #include "chrome/browser/renderer_host/pepper_file_message_filter.h"
51 #include "chrome/browser/renderer_host/render_view_host.h" 52 #include "chrome/browser/renderer_host/render_view_host.h"
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 id(), 389 id(),
389 PluginService::GetInstance(), 390 PluginService::GetInstance(),
390 g_browser_process->print_job_manager(), 391 g_browser_process->print_job_manager(),
391 profile(), 392 profile(),
392 widget_helper_)); 393 widget_helper_));
393 channel_->AddFilter(resource_message_filter); 394 channel_->AddFilter(resource_message_filter);
394 395
395 channel_->AddFilter(new AudioRendererHost()); 396 channel_->AddFilter(new AudioRendererHost());
396 channel_->AddFilter( 397 channel_->AddFilter(
397 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); 398 new AppCacheDispatcherHost(profile()->GetRequestContext(), id()));
399 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile()));
398 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); 400 channel_->AddFilter(new PepperFileMessageFilter(id(), profile()));
399 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id())); 401 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id()));
400 channel_->AddFilter( 402 channel_->AddFilter(
401 new SearchProviderInstallStateMessageFilter(id(), profile())); 403 new SearchProviderInstallStateMessageFilter(id(), profile()));
402 channel_->AddFilter(new FileSystemDispatcherHost(profile())); 404 channel_->AddFilter(new FileSystemDispatcherHost(profile()));
403 channel_->AddFilter(new device_orientation::MessageFilter()); 405 channel_->AddFilter(new device_orientation::MessageFilter());
404 channel_->AddFilter( 406 channel_->AddFilter(
405 new BlobMessageFilter(id(), profile()->GetBlobStorageContext())); 407 new BlobMessageFilter(id(), profile()->GetBlobStorageContext()));
406 channel_->AddFilter(new FileUtilitiesMessageFilter(id())); 408 channel_->AddFilter(new FileUtilitiesMessageFilter(id()));
407 channel_->AddFilter(new MimeRegistryMessageFilter()); 409 channel_->AddFilter(new MimeRegistryMessageFilter());
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 IPC::PlatformFileForTransit file; 1225 IPC::PlatformFileForTransit file;
1224 #if defined(OS_POSIX) 1226 #if defined(OS_POSIX)
1225 file = base::FileDescriptor(model_file, false); 1227 file = base::FileDescriptor(model_file, false);
1226 #elif defined(OS_WIN) 1228 #elif defined(OS_WIN)
1227 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1229 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1228 false, DUPLICATE_SAME_ACCESS); 1230 false, DUPLICATE_SAME_ACCESS);
1229 #endif 1231 #endif
1230 Send(new ViewMsg_SetPhishingModel(file)); 1232 Send(new ViewMsg_SetPhishingModel(file));
1231 } 1233 }
1232 } 1234 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698