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/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 #if defined(OS_CHROMEOS) | 709 #if defined(OS_CHROMEOS) |
710 content::kExternalFileScheme, | 710 content::kExternalFileScheme, |
711 #endif // defined(OS_CHROMEOS) | 711 #endif // defined(OS_CHROMEOS) |
712 url::kAboutScheme, | 712 url::kAboutScheme, |
713 #if !defined(DISABLE_FTP_SUPPORT) | 713 #if !defined(DISABLE_FTP_SUPPORT) |
714 url::kFtpScheme, | 714 url::kFtpScheme, |
715 #endif // !defined(DISABLE_FTP_SUPPORT) | 715 #endif // !defined(DISABLE_FTP_SUPPORT) |
716 url::kBlobScheme, | 716 url::kBlobScheme, |
717 url::kFileSystemScheme, | 717 url::kFileSystemScheme, |
718 chrome::kChromeSearchScheme, | 718 chrome::kChromeSearchScheme, |
| 719 content::kResourceScheme, |
719 }; | 720 }; |
720 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { | 721 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { |
721 if (scheme == kProtocolList[i]) | 722 if (scheme == kProtocolList[i]) |
722 return true; | 723 return true; |
723 } | 724 } |
724 return net::URLRequest::IsHandledProtocol(scheme); | 725 return net::URLRequest::IsHandledProtocol(scheme); |
725 } | 726 } |
726 | 727 |
727 // static | 728 // static |
728 bool ProfileIOData::IsHandledURL(const GURL& url) { | 729 bool ProfileIOData::IsHandledURL(const GURL& url) { |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 void ProfileIOData::SetCookieSettingsForTesting( | 1289 void ProfileIOData::SetCookieSettingsForTesting( |
1289 CookieSettings* cookie_settings) { | 1290 CookieSettings* cookie_settings) { |
1290 DCHECK(!cookie_settings_.get()); | 1291 DCHECK(!cookie_settings_.get()); |
1291 cookie_settings_ = cookie_settings; | 1292 cookie_settings_ = cookie_settings; |
1292 } | 1293 } |
1293 | 1294 |
1294 void ProfileIOData::set_signin_names_for_testing( | 1295 void ProfileIOData::set_signin_names_for_testing( |
1295 SigninNamesOnIOThread* signin_names) { | 1296 SigninNamesOnIOThread* signin_names) { |
1296 signin_names_.reset(signin_names); | 1297 signin_names_.reset(signin_names); |
1297 } | 1298 } |
OLD | NEW |