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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 24514003: Make BrowserMessageFilter not derive from IPC::ChannelProxy::MessageFilter. This allows us to hide … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/media/chrome_webrtc_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 225900)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -833,41 +833,38 @@
net::URLRequestContextGetter* context =
profile->GetRequestContextForRenderProcess(id);
- host->GetChannel()->AddFilter(new ChromeRenderMessageFilter(
- id, profile, context));
+ host->AddFilter(new ChromeRenderMessageFilter(id, profile, context));
#if defined(ENABLE_PLUGINS)
- host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile));
+ host->AddFilter(new PluginInfoMessageFilter(id, profile));
#endif
#if defined(ENABLE_PRINTING)
- host->GetChannel()->AddFilter(new PrintingMessageFilter(id, profile));
+ host->AddFilter(new PrintingMessageFilter(id, profile));
#endif
- host->GetChannel()->AddFilter(
- new SearchProviderInstallStateMessageFilter(id, profile));
+ host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile));
#if defined(ENABLE_SPELLCHECK)
- host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id));
+ host->AddFilter(new SpellCheckMessageFilter(id));
#endif
#if defined(OS_MACOSX)
- host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id));
+ host->AddFilter(new SpellCheckMessageFilterMac(id));
#endif
- host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter(
+ host->AddFilter(new ChromeNetBenchmarkingMessageFilter(
id, profile, context));
- host->GetChannel()->AddFilter(
- new prerender::PrerenderMessageFilter(id, profile));
- host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id));
- host->GetChannel()->AddFilter(new TtsMessageFilter(id, profile));
+ host->AddFilter(new prerender::PrerenderMessageFilter(id, profile));
+ host->AddFilter(new ValidationMessageMessageFilter(id));
+ host->AddFilter(new TtsMessageFilter(id, profile));
#if defined(ENABLE_WEBRTC)
- host->GetChannel()->AddFilter(new WebRtcLoggingHandlerHost());
+ host->AddFilter(new WebRtcLoggingHandlerHost());
#endif
#if !defined(DISABLE_NACL)
ExtensionInfoMap* extension_info_map =
extensions::ExtensionSystem::Get(profile)->info_map();
- host->GetChannel()->AddFilter(new NaClHostMessageFilter(
+ host->AddFilter(new NaClHostMessageFilter(
id, profile->IsOffTheRecord(),
profile->GetPath(), extension_info_map,
context));
#endif
#if defined(OS_ANDROID)
- host->GetChannel()->AddFilter(new EncryptedMediaMessageFilterAndroid());
+ host->AddFilter(new EncryptedMediaMessageFilterAndroid());
#endif
host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
« no previous file with comments | « no previous file | chrome/browser/media/chrome_webrtc_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698