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

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

Issue 2759333002: Move chrome-specific SerializedNavigation code to chrome/. (Closed)
Patch Set: bad export Created 3 years, 9 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
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 <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 #include "content/public/browser/storage_partition.h" 170 #include "content/public/browser/storage_partition.h"
171 #include "content/public/browser/vpn_service_proxy.h" 171 #include "content/public/browser/vpn_service_proxy.h"
172 #include "content/public/browser/web_contents.h" 172 #include "content/public/browser/web_contents.h"
173 #include "content/public/common/child_process_host.h" 173 #include "content/public/common/child_process_host.h"
174 #include "content/public/common/content_descriptors.h" 174 #include "content/public/common/content_descriptors.h"
175 #include "content/public/common/content_features.h" 175 #include "content/public/common/content_features.h"
176 #include "content/public/common/content_switches.h" 176 #include "content/public/common/content_switches.h"
177 #include "content/public/common/sandbox_type.h" 177 #include "content/public/common/sandbox_type.h"
178 #include "content/public/common/service_manager_connection.h" 178 #include "content/public/common/service_manager_connection.h"
179 #include "content/public/common/service_names.mojom.h" 179 #include "content/public/common/service_names.mojom.h"
180 #include "content/public/common/url_constants.h"
181 #include "content/public/common/url_utils.h" 180 #include "content/public/common/url_utils.h"
182 #include "content/public/common/web_preferences.h" 181 #include "content/public/common/web_preferences.h"
183 #include "device/bluetooth/adapter_factory.h" 182 #include "device/bluetooth/adapter_factory.h"
184 #include "device/bluetooth/public/interfaces/adapter.mojom.h" 183 #include "device/bluetooth/public/interfaces/adapter.mojom.h"
185 #include "device/usb/public/interfaces/chooser_service.mojom.h" 184 #include "device/usb/public/interfaces/chooser_service.mojom.h"
186 #include "device/usb/public/interfaces/device_manager.mojom.h" 185 #include "device/usb/public/interfaces/device_manager.mojom.h"
187 #include "extensions/features/features.h" 186 #include "extensions/features/features.h"
188 #include "gpu/config/gpu_switches.h" 187 #include "gpu/config/gpu_switches.h"
189 #include "media/audio/audio_manager.h" 188 #include "media/audio/audio_manager.h"
190 #include "media/media_features.h" 189 #include "media/media_features.h"
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 browser_context, *url)) 645 browser_context, *url))
647 return false; 646 return false;
648 647
649 #if defined(OS_CHROMEOS) 648 #if defined(OS_CHROMEOS)
650 // Special case : in ChromeOS in Guest mode bookmarks and history are 649 // Special case : in ChromeOS in Guest mode bookmarks and history are
651 // disabled for security reasons. New tab page explains the reasons, so 650 // disabled for security reasons. New tab page explains the reasons, so
652 // we redirect user to new tab page. 651 // we redirect user to new tab page.
653 if (user_manager::UserManager::Get()->IsLoggedInAsGuest()) { 652 if (user_manager::UserManager::Get()->IsLoggedInAsGuest()) {
654 if (url->SchemeIs(content::kChromeUIScheme) && 653 if (url->SchemeIs(content::kChromeUIScheme) &&
655 (url->DomainIs(chrome::kChromeUIBookmarksHost) || 654 (url->DomainIs(chrome::kChromeUIBookmarksHost) ||
656 url->DomainIs(content::kChromeUIHistoryHost))) { 655 url->DomainIs(chrome::kChromeUIHistoryHost))) {
657 // Rewrite with new tab URL 656 // Rewrite with new tab URL
658 *url = GURL(chrome::kChromeUINewTabURL); 657 *url = GURL(chrome::kChromeUINewTabURL);
659 } 658 }
660 } 659 }
661 #endif 660 #endif
662 661
663 return true; 662 return true;
664 } 663 }
665 664
666 // Reverse URL handler for Web UI. Maps "chrome://chrome/foo/" to 665 // Reverse URL handler for Web UI. Maps "chrome://chrome/foo/" to
(...skipping 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after
3562 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3561 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3563 return variations::GetVariationParamValue( 3562 return variations::GetVariationParamValue(
3564 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3563 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3565 } 3564 }
3566 3565
3567 // static 3566 // static
3568 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3567 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3569 const storage::QuotaSettings* settings) { 3568 const storage::QuotaSettings* settings) {
3570 g_default_quota_settings = settings; 3569 g_default_quota_settings = settings;
3571 } 3570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698