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

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

Issue 6546051: Created a new BrowserMessageFilter to handle print related IPC messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "chrome/common/logging_chrome.h" 81 #include "chrome/common/logging_chrome.h"
82 #include "chrome/common/net/url_request_context_getter.h" 82 #include "chrome/common/net/url_request_context_getter.h"
83 #include "chrome/common/notification_service.h" 83 #include "chrome/common/notification_service.h"
84 #include "chrome/common/pref_names.h" 84 #include "chrome/common/pref_names.h"
85 #include "chrome/common/process_watcher.h" 85 #include "chrome/common/process_watcher.h"
86 #include "chrome/common/render_messages.h" 86 #include "chrome/common/render_messages.h"
87 #include "chrome/common/render_messages_params.h" 87 #include "chrome/common/render_messages_params.h"
88 #include "chrome/common/result_codes.h" 88 #include "chrome/common/result_codes.h"
89 #include "chrome/renderer/render_process_impl.h" 89 #include "chrome/renderer/render_process_impl.h"
90 #include "chrome/renderer/render_thread.h" 90 #include "chrome/renderer/render_thread.h"
91 #include "content/browser/renderer_host/printing_message_filter.h"
kmadhusu 2011/02/21 21:30:04 jam: Do I need a dummy file "chrome/browser/render
Lei Zhang 2011/02/22 19:37:42 This should be fine. Nobody is referring to the fi
jam 2011/02/22 20:29:41 actually, the printing code will remain in src\chr
kmadhusu 2011/02/23 02:27:49 Done. Moved printing_message_filter from src/conte
91 #include "grit/generated_resources.h" 92 #include "grit/generated_resources.h"
92 #include "ipc/ipc_logging.h" 93 #include "ipc/ipc_logging.h"
93 #include "ipc/ipc_message.h" 94 #include "ipc/ipc_message.h"
94 #include "ipc/ipc_platform_file.h" 95 #include "ipc/ipc_platform_file.h"
95 #include "ipc/ipc_switches.h" 96 #include "ipc/ipc_switches.h"
96 #include "media/base/media_switches.h" 97 #include "media/base/media_switches.h"
97 #include "ui/base/ui_base_switches.h" 98 #include "ui/base/ui_base_switches.h"
98 #include "webkit/fileapi/file_system_path_manager.h" 99 #include "webkit/fileapi/file_system_path_manager.h"
99 #include "webkit/plugins/plugin_switches.h" 100 #include "webkit/plugins/plugin_switches.h"
100 101
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 channel_->AddFilter( 451 channel_->AddFilter(
451 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); 452 new AppCacheDispatcherHost(profile()->GetRequestContext(), id()));
452 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile())); 453 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile()));
453 channel_->AddFilter(new IndexedDBDispatcherHost(id(), profile())); 454 channel_->AddFilter(new IndexedDBDispatcherHost(id(), profile()));
454 channel_->AddFilter( 455 channel_->AddFilter(
455 GeolocationDispatcherHost::New( 456 GeolocationDispatcherHost::New(
456 id(), profile()->GetGeolocationPermissionContext())); 457 id(), profile()->GetGeolocationPermissionContext()));
457 channel_->AddFilter(new GpuMessageFilter(id())); 458 channel_->AddFilter(new GpuMessageFilter(id()));
458 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); 459 channel_->AddFilter(new PepperFileMessageFilter(id(), profile()));
459 channel_->AddFilter(new PepperMessageFilter(profile())); 460 channel_->AddFilter(new PepperMessageFilter(profile()));
461 channel_->AddFilter(new PrintingMessageFilter());
460 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id())); 462 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id()));
461 channel_->AddFilter( 463 channel_->AddFilter(
462 new SearchProviderInstallStateMessageFilter(id(), profile())); 464 new SearchProviderInstallStateMessageFilter(id(), profile()));
463 channel_->AddFilter(new FileSystemDispatcherHost(profile())); 465 channel_->AddFilter(new FileSystemDispatcherHost(profile()));
464 channel_->AddFilter(new device_orientation::MessageFilter()); 466 channel_->AddFilter(new device_orientation::MessageFilter());
465 channel_->AddFilter( 467 channel_->AddFilter(
466 new BlobMessageFilter(id(), profile()->GetBlobStorageContext())); 468 new BlobMessageFilter(id(), profile()->GetBlobStorageContext()));
467 channel_->AddFilter(new FileUtilitiesMessageFilter(id())); 469 channel_->AddFilter(new FileUtilitiesMessageFilter(id()));
468 channel_->AddFilter(new MimeRegistryMessageFilter()); 470 channel_->AddFilter(new MimeRegistryMessageFilter());
469 channel_->AddFilter(new DatabaseMessageFilter( 471 channel_->AddFilter(new DatabaseMessageFilter(
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 IPC::PlatformFileForTransit file; 1280 IPC::PlatformFileForTransit file;
1279 #if defined(OS_POSIX) 1281 #if defined(OS_POSIX)
1280 file = base::FileDescriptor(model_file, false); 1282 file = base::FileDescriptor(model_file, false);
1281 #elif defined(OS_WIN) 1283 #elif defined(OS_WIN)
1282 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1284 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1283 false, DUPLICATE_SAME_ACCESS); 1285 false, DUPLICATE_SAME_ACCESS);
1284 #endif 1286 #endif
1285 Send(new ViewMsg_SetPhishingModel(file)); 1287 Send(new ViewMsg_SetPhishingModel(file));
1286 } 1288 }
1287 } 1289 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698