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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 7036025: Get rid of chrome dependencies from PluginProcessHost by moving dispatching of chrome specific me... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/app/breakpad_mac.h" 8 #include "chrome/app/breakpad_mac.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/character_encoding.h" 10 #include "chrome/browser/character_encoding.h"
11 #include "chrome/browser/chrome_plugin_message_filter.h"
11 #include "chrome/browser/chrome_worker_message_filter.h" 12 #include "chrome/browser/chrome_worker_message_filter.h"
12 #include "chrome/browser/content_settings/host_content_settings_map.h" 13 #include "chrome/browser/content_settings/host_content_settings_map.h"
13 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
14 #include "chrome/browser/debugger/devtools_handler.h" 15 #include "chrome/browser/debugger/devtools_handler.h"
15 #include "chrome/browser/desktop_notification_handler.h" 16 #include "chrome/browser/desktop_notification_handler.h"
16 #include "chrome/browser/extensions/extension_message_handler.h" 17 #include "chrome/browser/extensions/extension_message_handler.h"
17 #include "chrome/browser/extensions/extension_service.h" 18 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/google/google_util.h" 19 #include "chrome/browser/google/google_util.h"
19 #include "chrome/browser/prefs/pref_service.h" 20 #include "chrome/browser/prefs/pref_service.h"
20 #include "chrome/browser/printing/printing_message_filter.h" 21 #include "chrome/browser/printing/printing_message_filter.h"
21 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/profiles/profile_io_data.h" 23 #include "chrome/browser/profiles/profile_io_data.h"
23 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" 24 #include "chrome/browser/renderer_host/chrome_render_message_filter.h"
24 #include "chrome/browser/renderer_host/chrome_render_view_host_observer.h" 25 #include "chrome/browser/renderer_host/chrome_render_view_host_observer.h"
25 #include "chrome/browser/renderer_host/text_input_client_message_filter.h" 26 #include "chrome/browser/renderer_host/text_input_client_message_filter.h"
26 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" 27 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h"
27 #include "chrome/browser/spellcheck_message_filter.h" 28 #include "chrome/browser/spellcheck_message_filter.h"
28 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h" 29 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
29 #include "chrome/common/child_process_logging.h" 30 #include "chrome/common/child_process_logging.h"
30 #include "chrome/common/chrome_switches.h" 31 #include "chrome/common/chrome_switches.h"
31 #include "chrome/common/extensions/extension_messages.h" 32 #include "chrome/common/extensions/extension_messages.h"
32 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
33 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
34 #include "content/browser/browsing_instance.h" 35 #include "content/browser/browsing_instance.h"
35 #include "content/browser/child_process_security_policy.h" 36 #include "content/browser/child_process_security_policy.h"
37 #include "content/browser/plugin_process_host.h"
36 #include "content/browser/renderer_host/browser_render_process_host.h" 38 #include "content/browser/renderer_host/browser_render_process_host.h"
37 #include "content/browser/renderer_host/render_view_host.h" 39 #include "content/browser/renderer_host/render_view_host.h"
38 #include "content/browser/resource_context.h" 40 #include "content/browser/resource_context.h"
39 #include "content/browser/site_instance.h" 41 #include "content/browser/site_instance.h"
40 #include "content/browser/tab_contents/tab_contents.h" 42 #include "content/browser/tab_contents/tab_contents.h"
41 #include "content/browser/worker_host/worker_process_host.h" 43 #include "content/browser/worker_host/worker_process_host.h"
42 #include "content/common/bindings_policy.h" 44 #include "content/common/bindings_policy.h"
43 #include "net/base/cookie_monster.h" 45 #include "net/base/cookie_monster.h"
44 #include "net/base/cookie_options.h" 46 #include "net/base/cookie_options.h"
45 #include "net/base/static_cookie_policy.h" 47 #include "net/base/static_cookie_policy.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 id, profile, profile->GetRequestContextForRenderProcess(id))); 130 id, profile, profile->GetRequestContextForRenderProcess(id)));
129 host->channel()->AddFilter(new PrintingMessageFilter()); 131 host->channel()->AddFilter(new PrintingMessageFilter());
130 host->channel()->AddFilter( 132 host->channel()->AddFilter(
131 new SearchProviderInstallStateMessageFilter(id, profile)); 133 new SearchProviderInstallStateMessageFilter(id, profile));
132 host->channel()->AddFilter(new SpellCheckMessageFilter(id)); 134 host->channel()->AddFilter(new SpellCheckMessageFilter(id));
133 #if defined(OS_MACOSX) 135 #if defined(OS_MACOSX)
134 host->channel()->AddFilter(new TextInputClientMessageFilter(host->id())); 136 host->channel()->AddFilter(new TextInputClientMessageFilter(host->id()));
135 #endif 137 #endif
136 } 138 }
137 139
140 void ChromeContentBrowserClient::PluginProcessHostCreated(
141 PluginProcessHost* host) {
142 host->AddFilter(new ChromePluginMessageFilter(host));
143 }
144
138 void ChromeContentBrowserClient::WorkerProcessHostCreated( 145 void ChromeContentBrowserClient::WorkerProcessHostCreated(
139 WorkerProcessHost* host) { 146 WorkerProcessHost* host) {
140 host->AddFilter(new ChromeWorkerMessageFilter(host)); 147 host->AddFilter(new ChromeWorkerMessageFilter(host));
141 } 148 }
142 149
143 content::WebUIFactory* ChromeContentBrowserClient::GetWebUIFactory() { 150 content::WebUIFactory* ChromeContentBrowserClient::GetWebUIFactory() {
144 return ChromeWebUIFactory::GetInstance(); 151 return ChromeWebUIFactory::GetInstance();
145 } 152 }
146 153
147 GURL ChromeContentBrowserClient::GetEffectiveURL(Profile* profile, 154 GURL ChromeContentBrowserClient::GetEffectiveURL(Profile* profile,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); 348 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket();
342 349
343 if (process_type == switches::kGpuProcess) 350 if (process_type == switches::kGpuProcess)
344 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); 351 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket();
345 352
346 return -1; 353 return -1;
347 } 354 }
348 #endif 355 #endif
349 356
350 } // namespace chrome 357 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/chrome_plugin_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698