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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 2458793003: Make the content scheme local (Closed)
Patch Set: Created 4 years, 1 month 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/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 dom_distiller::kDomDistillerScheme, 735 dom_distiller::kDomDistillerScheme,
736 #if defined(ENABLE_EXTENSIONS) 736 #if defined(ENABLE_EXTENSIONS)
737 extensions::kExtensionScheme, 737 extensions::kExtensionScheme,
738 extensions::kExtensionResourceScheme, 738 extensions::kExtensionResourceScheme,
739 #endif 739 #endif
740 content::kChromeUIScheme, 740 content::kChromeUIScheme,
741 url::kDataScheme, 741 url::kDataScheme,
742 #if defined(OS_CHROMEOS) 742 #if defined(OS_CHROMEOS)
743 content::kExternalFileScheme, 743 content::kExternalFileScheme,
744 #endif // defined(OS_CHROMEOS) 744 #endif // defined(OS_CHROMEOS)
745 #if defined(OS_ANDROID)
746 url::kContentScheme,
747 #endif // defined(OS_ANDROID)
745 url::kAboutScheme, 748 url::kAboutScheme,
746 #if !defined(DISABLE_FTP_SUPPORT) 749 #if !defined(DISABLE_FTP_SUPPORT)
747 url::kFtpScheme, 750 url::kFtpScheme,
748 #endif // !defined(DISABLE_FTP_SUPPORT) 751 #endif // !defined(DISABLE_FTP_SUPPORT)
749 url::kBlobScheme, 752 url::kBlobScheme,
750 url::kFileSystemScheme, 753 url::kFileSystemScheme,
751 chrome::kChromeSearchScheme, 754 chrome::kChromeSearchScheme,
752 }; 755 };
753 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { 756 for (size_t i = 0; i < arraysize(kProtocolList); ++i) {
754 if (scheme == kProtocolList[i]) 757 if (scheme == kProtocolList[i])
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 void ProfileIOData::SetCookieSettingsForTesting( 1374 void ProfileIOData::SetCookieSettingsForTesting(
1372 content_settings::CookieSettings* cookie_settings) { 1375 content_settings::CookieSettings* cookie_settings) {
1373 DCHECK(!cookie_settings_.get()); 1376 DCHECK(!cookie_settings_.get());
1374 cookie_settings_ = cookie_settings; 1377 cookie_settings_ = cookie_settings;
1375 } 1378 }
1376 1379
1377 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1380 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1378 const GURL& url) const { 1381 const GURL& url) const {
1379 return url_blacklist_manager_->GetURLBlacklistState(url); 1382 return url_blacklist_manager_->GetURLBlacklistState(url);
1380 } 1383 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698