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

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

Issue 15906013: Separate NaCl messages from the rest of chrome messages and create a new message filter. This is pa… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 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
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_file_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 #include "chrome/browser/extensions/extension_process_manager.h" 39 #include "chrome/browser/extensions/extension_process_manager.h"
40 #include "chrome/browser/extensions/extension_service.h" 40 #include "chrome/browser/extensions/extension_service.h"
41 #include "chrome/browser/extensions/extension_system.h" 41 #include "chrome/browser/extensions/extension_system.h"
42 #include "chrome/browser/extensions/extension_web_ui.h" 42 #include "chrome/browser/extensions/extension_web_ui.h"
43 #include "chrome/browser/extensions/extension_webkit_preferences.h" 43 #include "chrome/browser/extensions/extension_webkit_preferences.h"
44 #include "chrome/browser/extensions/suggest_permission_util.h" 44 #include "chrome/browser/extensions/suggest_permission_util.h"
45 #include "chrome/browser/geolocation/chrome_access_token_store.h" 45 #include "chrome/browser/geolocation/chrome_access_token_store.h"
46 #include "chrome/browser/google/google_util.h" 46 #include "chrome/browser/google/google_util.h"
47 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 47 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
48 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" 48 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h"
49 #include "chrome/browser/nacl_host/nacl_host_message_filter.h"
49 #include "chrome/browser/nacl_host/nacl_process_host.h" 50 #include "chrome/browser/nacl_host/nacl_process_host.h"
50 #include "chrome/browser/net/chrome_net_log.h" 51 #include "chrome/browser/net/chrome_net_log.h"
51 #include "chrome/browser/notifications/desktop_notification_service.h" 52 #include "chrome/browser/notifications/desktop_notification_service.h"
52 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 53 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
53 #include "chrome/browser/platform_util.h" 54 #include "chrome/browser/platform_util.h"
54 #include "chrome/browser/plugins/plugin_info_message_filter.h" 55 #include "chrome/browser/plugins/plugin_info_message_filter.h"
55 #include "chrome/browser/prefs/scoped_user_pref_update.h" 56 #include "chrome/browser/prefs/scoped_user_pref_update.h"
56 #include "chrome/browser/prerender/prerender_manager.h" 57 #include "chrome/browser/prerender/prerender_manager.h"
57 #include "chrome/browser/prerender/prerender_manager_factory.h" 58 #include "chrome/browser/prerender/prerender_manager_factory.h"
58 #include "chrome/browser/prerender/prerender_message_filter.h" 59 #include "chrome/browser/prerender/prerender_message_filter.h"
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 #endif 740 #endif
740 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( 741 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter(
741 id, profile, context)); 742 id, profile, context));
742 host->GetChannel()->AddFilter( 743 host->GetChannel()->AddFilter(
743 new prerender::PrerenderMessageFilter(id, profile)); 744 new prerender::PrerenderMessageFilter(id, profile));
744 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id)); 745 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id));
745 host->GetChannel()->AddFilter(new TtsMessageFilter(id, profile)); 746 host->GetChannel()->AddFilter(new TtsMessageFilter(id, profile));
746 #if defined(ENABLE_WEBRTC) 747 #if defined(ENABLE_WEBRTC)
747 host->GetChannel()->AddFilter(new WebRtcLoggingHandlerHost()); 748 host->GetChannel()->AddFilter(new WebRtcLoggingHandlerHost());
748 #endif 749 #endif
750 #if !defined(DISABLE_NACL)
751 host->GetChannel()->AddFilter(new NaClHostMessageFilter(id, profile,
752 context));
753 #endif
749 754
750 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( 755 host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
751 profile->IsOffTheRecord())); 756 profile->IsOffTheRecord()));
752 757
753 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled( 758 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled(
754 IsExtensionActivityLogEnabledForProfile(profile))); 759 IsExtensionActivityLogEnabledForProfile(profile)));
755 760
756 SendExtensionWebRequestStatusToHost(host); 761 SendExtensionWebRequestStatusToHost(host);
757 762
758 RendererContentSettingRules rules; 763 RendererContentSettingRules rules;
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
2341 #if defined(USE_NSS) 2346 #if defined(USE_NSS)
2342 crypto::CryptoModuleBlockingPasswordDelegate* 2347 crypto::CryptoModuleBlockingPasswordDelegate*
2343 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 2348 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
2344 const GURL& url) { 2349 const GURL& url) {
2345 return chrome::NewCryptoModuleBlockingDialogDelegate( 2350 return chrome::NewCryptoModuleBlockingDialogDelegate(
2346 chrome::kCryptoModulePasswordKeygen, url.host()); 2351 chrome::kCryptoModulePasswordKeygen, url.host());
2347 } 2352 }
2348 #endif 2353 #endif
2349 2354
2350 } // namespace chrome 2355 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_file_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698