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

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

Issue 10540033: Add ENABLE_PRINTING and disable it on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 new ExtensionMessageHandler(render_view_host); 389 new ExtensionMessageHandler(render_view_host);
390 } 390 }
391 391
392 void ChromeContentBrowserClient::RenderProcessHostCreated( 392 void ChromeContentBrowserClient::RenderProcessHostCreated(
393 content::RenderProcessHost* host) { 393 content::RenderProcessHost* host) {
394 int id = host->GetID(); 394 int id = host->GetID();
395 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); 395 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
396 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( 396 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter(
397 id, profile, profile->GetRequestContextForRenderProcess(id))); 397 id, profile, profile->GetRequestContextForRenderProcess(id)));
398 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); 398 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile));
399 #if !defined(OS_ANDROID) 399 #if defined(ENABLE_PRINTING)
400 host->GetChannel()->AddFilter(new PrintingMessageFilter(id)); 400 host->GetChannel()->AddFilter(new PrintingMessageFilter(id));
401 #endif 401 #endif
402 host->GetChannel()->AddFilter( 402 host->GetChannel()->AddFilter(
403 new SearchProviderInstallStateMessageFilter(id, profile)); 403 new SearchProviderInstallStateMessageFilter(id, profile));
404 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); 404 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id));
405 #if defined(OS_MACOSX) 405 #if defined(OS_MACOSX)
406 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); 406 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac());
407 #endif 407 #endif
408 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( 408 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter(
409 id, profile, profile->GetRequestContextForRenderProcess(id))); 409 id, profile, profile->GetRequestContextForRenderProcess(id)));
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 #if defined(USE_NSS) 1619 #if defined(USE_NSS)
1620 crypto::CryptoModuleBlockingPasswordDelegate* 1620 crypto::CryptoModuleBlockingPasswordDelegate*
1621 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1621 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1622 const GURL& url) { 1622 const GURL& url) {
1623 return browser::NewCryptoModuleBlockingDialogDelegate( 1623 return browser::NewCryptoModuleBlockingDialogDelegate(
1624 browser::kCryptoModulePasswordKeygen, url.host()); 1624 browser::kCryptoModulePasswordKeygen, url.host());
1625 } 1625 }
1626 #endif 1626 #endif
1627 1627
1628 } // namespace chrome 1628 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698