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

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

Issue 7734005: Get rid of the link time dependency between content and chrome through the geolocation code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_about_handler.h" 9 #include "chrome/browser/browser_about_handler.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/browsing_data_remover.h" 11 #include "chrome/browser/browsing_data_remover.h"
12 #include "chrome/browser/character_encoding.h" 12 #include "chrome/browser/character_encoding.h"
13 #include "chrome/browser/chrome_plugin_message_filter.h" 13 #include "chrome/browser/chrome_plugin_message_filter.h"
14 #include "chrome/browser/chrome_quota_permission_context.h" 14 #include "chrome/browser/chrome_quota_permission_context.h"
15 #include "chrome/browser/chrome_worker_message_filter.h" 15 #include "chrome/browser/chrome_worker_message_filter.h"
16 #include "chrome/browser/content_settings/host_content_settings_map.h" 16 #include "chrome/browser/content_settings/host_content_settings_map.h"
17 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 17 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
18 #include "chrome/browser/download/download_util.h" 18 #include "chrome/browser/download/download_util.h"
19 #include "chrome/browser/extensions/extension_info_map.h" 19 #include "chrome/browser/extensions/extension_info_map.h"
20 #include "chrome/browser/extensions/extension_message_handler.h" 20 #include "chrome/browser/extensions/extension_message_handler.h"
21 #include "chrome/browser/extensions/extension_service.h" 21 #include "chrome/browser/extensions/extension_service.h"
22 #include "chrome/browser/extensions/extension_web_ui.h" 22 #include "chrome/browser/extensions/extension_web_ui.h"
23 #include "chrome/browser/geolocation/chrome_access_token_store.h"
23 #include "chrome/browser/google/google_util.h" 24 #include "chrome/browser/google/google_util.h"
24 #include "chrome/browser/net/chrome_net_log.h" 25 #include "chrome/browser/net/chrome_net_log.h"
25 #include "chrome/browser/notifications/desktop_notification_service.h" 26 #include "chrome/browser/notifications/desktop_notification_service.h"
26 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 27 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
27 #include "chrome/browser/platform_util.h" 28 #include "chrome/browser/platform_util.h"
28 #include "chrome/browser/prefs/pref_service.h" 29 #include "chrome/browser/prefs/pref_service.h"
29 #include "chrome/browser/prerender/prerender_manager.h" 30 #include "chrome/browser/prerender/prerender_manager.h"
30 #include "chrome/browser/prerender/prerender_tracker.h" 31 #include "chrome/browser/prerender/prerender_tracker.h"
31 #include "chrome/browser/printing/printing_message_filter.h" 32 #include "chrome/browser/printing/printing_message_filter.h"
32 #include "chrome/browser/profiles/profile.h" 33 #include "chrome/browser/profiles/profile.h"
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 } 659 }
659 660
660 DevToolsManager* ChromeContentBrowserClient::GetDevToolsManager() { 661 DevToolsManager* ChromeContentBrowserClient::GetDevToolsManager() {
661 return g_browser_process->devtools_manager(); 662 return g_browser_process->devtools_manager();
662 } 663 }
663 664
664 net::NetLog* ChromeContentBrowserClient::GetNetLog() { 665 net::NetLog* ChromeContentBrowserClient::GetNetLog() {
665 return g_browser_process->net_log(); 666 return g_browser_process->net_log();
666 } 667 }
667 668
669 AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() {
670 return new ChromeAccessTokenStore();
671 }
672
668 bool ChromeContentBrowserClient::IsFastShutdownPossible() { 673 bool ChromeContentBrowserClient::IsFastShutdownPossible() {
669 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 674 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
670 return !browser_command_line.HasSwitch(switches::kChromeFrame); 675 return !browser_command_line.HasSwitch(switches::kChromeFrame);
671 } 676 }
672 677
673 WebPreferences ChromeContentBrowserClient::GetWebkitPrefs( 678 WebPreferences ChromeContentBrowserClient::GetWebkitPrefs(
674 content::BrowserContext* browser_context, bool is_web_ui) { 679 content::BrowserContext* browser_context, bool is_web_ui) {
675 return RenderViewHostDelegateHelper::GetWebkitPrefs(browser_context, 680 return RenderViewHostDelegateHelper::GetWebkitPrefs(browser_context,
676 is_web_ui); 681 is_web_ui);
677 } 682 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 #if defined(USE_NSS) 766 #if defined(USE_NSS)
762 crypto::CryptoModuleBlockingPasswordDelegate* 767 crypto::CryptoModuleBlockingPasswordDelegate*
763 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 768 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
764 const GURL& url) { 769 const GURL& url) {
765 return browser::NewCryptoModuleBlockingDialogDelegate( 770 return browser::NewCryptoModuleBlockingDialogDelegate(
766 browser::kCryptoModulePasswordKeygen, url.host()); 771 browser::kCryptoModulePasswordKeygen, url.host());
767 } 772 }
768 #endif 773 #endif
769 774
770 } // namespace chrome 775 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/geolocation/access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698