OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 #include "chrome/browser/search/instant_service_factory.h" | 72 #include "chrome/browser/search/instant_service_factory.h" |
73 #include "chrome/browser/search/search.h" | 73 #include "chrome/browser/search/search.h" |
74 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" | 74 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" |
75 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" | 75 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" |
76 #include "chrome/browser/speech/tts_message_filter.h" | 76 #include "chrome/browser/speech/tts_message_filter.h" |
77 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 77 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
78 #include "chrome/browser/ssl/ssl_add_certificate.h" | 78 #include "chrome/browser/ssl/ssl_add_certificate.h" |
79 #include "chrome/browser/ssl/ssl_blocking_page.h" | 79 #include "chrome/browser/ssl/ssl_blocking_page.h" |
80 #include "chrome/browser/ssl/ssl_tab_helper.h" | 80 #include "chrome/browser/ssl/ssl_tab_helper.h" |
81 #include "chrome/browser/tab_contents/tab_util.h" | 81 #include "chrome/browser/tab_contents/tab_util.h" |
82 #include "chrome/browser/toolkit_extra_parts.h" | |
83 #include "chrome/browser/ui/chrome_select_file_policy.h" | 82 #include "chrome/browser/ui/chrome_select_file_policy.h" |
84 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 83 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
85 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" | 84 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" |
86 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 85 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
87 #include "chrome/browser/user_style_sheet_watcher.h" | 86 #include "chrome/browser/user_style_sheet_watcher.h" |
88 #include "chrome/browser/user_style_sheet_watcher_factory.h" | 87 #include "chrome/browser/user_style_sheet_watcher_factory.h" |
89 #include "chrome/browser/validation_message_message_filter.h" | 88 #include "chrome/browser/validation_message_message_filter.h" |
90 #include "chrome/common/child_process_logging.h" | 89 #include "chrome/common/child_process_logging.h" |
91 #include "chrome/common/chrome_constants.h" | 90 #include "chrome/common/chrome_constants.h" |
92 #include "chrome/common/chrome_paths.h" | 91 #include "chrome/common/chrome_paths.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 #endif | 194 #endif |
196 | 195 |
197 #if defined(ENABLE_INPUT_SPEECH) | 196 #if defined(ENABLE_INPUT_SPEECH) |
198 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate_bubbl
e_ui.h" | 197 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate_bubbl
e_ui.h" |
199 #endif | 198 #endif |
200 | 199 |
201 #if defined(FILE_MANAGER_EXTENSION) | 200 #if defined(FILE_MANAGER_EXTENSION) |
202 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" | 201 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" |
203 #endif | 202 #endif |
204 | 203 |
| 204 #if defined(TOOLKIT_GTK) |
| 205 #include "chrome/browser/ui/gtk/chrome_browser_main_extra_parts_gtk.h" |
| 206 #endif |
| 207 |
| 208 #if defined(TOOLKIT_VIEWS) |
| 209 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" |
| 210 #endif |
| 211 |
| 212 #if defined(USE_ASH) |
| 213 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h" |
| 214 #endif |
| 215 |
| 216 #if defined(USE_AURA) |
| 217 #include "chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h" |
| 218 #endif |
| 219 |
| 220 #if defined(USE_X11) |
| 221 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" |
| 222 #endif |
| 223 |
205 using base::FileDescriptor; | 224 using base::FileDescriptor; |
206 using content::AccessTokenStore; | 225 using content::AccessTokenStore; |
207 using content::BrowserChildProcessHostIterator; | 226 using content::BrowserChildProcessHostIterator; |
208 using content::BrowserThread; | 227 using content::BrowserThread; |
209 using content::BrowserURLHandler; | 228 using content::BrowserURLHandler; |
210 using content::ChildProcessSecurityPolicy; | 229 using content::ChildProcessSecurityPolicy; |
211 using content::FileDescriptorInfo; | 230 using content::FileDescriptorInfo; |
212 using content::QuotaPermissionContext; | 231 using content::QuotaPermissionContext; |
213 using content::RenderViewHost; | 232 using content::RenderViewHost; |
214 using content::SiteInstance; | 233 using content::SiteInstance; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 #else | 585 #else |
567 NOTREACHED(); | 586 NOTREACHED(); |
568 main_parts = new ChromeBrowserMainParts(parameters); | 587 main_parts = new ChromeBrowserMainParts(parameters); |
569 #endif | 588 #endif |
570 | 589 |
571 chrome::AddProfilesExtraParts(main_parts); | 590 chrome::AddProfilesExtraParts(main_parts); |
572 | 591 |
573 // Construct additional browser parts. Stages are called in the order in | 592 // Construct additional browser parts. Stages are called in the order in |
574 // which they are added. | 593 // which they are added. |
575 #if defined(TOOLKIT_GTK) | 594 #if defined(TOOLKIT_GTK) |
576 chrome::AddGtkToolkitExtraParts(main_parts); | 595 main_parts->AddParts(new ChromeBrowserMainExtraPartsGtk()); |
577 #endif | 596 #endif |
578 | 597 |
579 #if defined(TOOLKIT_VIEWS) | 598 #if defined(TOOLKIT_VIEWS) |
580 chrome::AddViewsToolkitExtraParts(main_parts); | 599 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews()); |
581 #endif | 600 #endif |
582 | 601 |
583 #if defined(USE_ASH) | 602 #if defined(USE_ASH) |
584 chrome::AddAshToolkitExtraParts(main_parts); | 603 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh()); |
585 #endif | 604 #endif |
586 | 605 |
587 #if defined(USE_AURA) | 606 #if defined(USE_AURA) |
588 chrome::AddAuraToolkitExtraParts(main_parts); | 607 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura()); |
| 608 #endif |
| 609 |
| 610 #if defined(USE_X11) |
| 611 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11()); |
589 #endif | 612 #endif |
590 | 613 |
591 chrome::AddMetricsExtraParts(main_parts); | 614 chrome::AddMetricsExtraParts(main_parts); |
592 | 615 |
593 return main_parts; | 616 return main_parts; |
594 } | 617 } |
595 | 618 |
596 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( | 619 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( |
597 content::BrowserContext* browser_context, | 620 content::BrowserContext* browser_context, |
598 const GURL& site) { | 621 const GURL& site) { |
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2431 #if defined(USE_NSS) | 2454 #if defined(USE_NSS) |
2432 crypto::CryptoModuleBlockingPasswordDelegate* | 2455 crypto::CryptoModuleBlockingPasswordDelegate* |
2433 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2456 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
2434 const GURL& url) { | 2457 const GURL& url) { |
2435 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2458 return chrome::NewCryptoModuleBlockingDialogDelegate( |
2436 chrome::kCryptoModulePasswordKeygen, url.host()); | 2459 chrome::kCryptoModulePasswordKeygen, url.host()); |
2437 } | 2460 } |
2438 #endif | 2461 #endif |
2439 | 2462 |
2440 } // namespace chrome | 2463 } // namespace chrome |
OLD | NEW |