| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 | 605 |
| 606 // static | 606 // static |
| 607 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { | 607 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
| 608 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); | 608 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); |
| 609 static const char* const kProtocolList[] = { | 609 static const char* const kProtocolList[] = { |
| 610 content::kFileScheme, | 610 content::kFileScheme, |
| 611 chrome::kChromeDevToolsScheme, | 611 chrome::kChromeDevToolsScheme, |
| 612 chrome::kDomDistillerScheme, | 612 chrome::kDomDistillerScheme, |
| 613 extensions::kExtensionScheme, | 613 extensions::kExtensionScheme, |
| 614 extensions::kExtensionResourceScheme, | 614 extensions::kExtensionResourceScheme, |
| 615 chrome::kChromeUIScheme, | 615 content::kChromeUIScheme, |
| 616 content::kDataScheme, | 616 content::kDataScheme, |
| 617 #if defined(OS_CHROMEOS) | 617 #if defined(OS_CHROMEOS) |
| 618 chrome::kDriveScheme, | 618 chrome::kDriveScheme, |
| 619 #endif // defined(OS_CHROMEOS) | 619 #endif // defined(OS_CHROMEOS) |
| 620 chrome::kAboutScheme, | 620 chrome::kAboutScheme, |
| 621 #if !defined(DISABLE_FTP_SUPPORT) | 621 #if !defined(DISABLE_FTP_SUPPORT) |
| 622 content::kFtpScheme, | 622 content::kFtpScheme, |
| 623 #endif // !defined(DISABLE_FTP_SUPPORT) | 623 #endif // !defined(DISABLE_FTP_SUPPORT) |
| 624 chrome::kBlobScheme, | 624 chrome::kBlobScheme, |
| 625 content::kFileSystemScheme, | 625 content::kFileSystemScheme, |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 void ProfileIOData::SetCookieSettingsForTesting( | 1139 void ProfileIOData::SetCookieSettingsForTesting( |
| 1140 CookieSettings* cookie_settings) { | 1140 CookieSettings* cookie_settings) { |
| 1141 DCHECK(!cookie_settings_.get()); | 1141 DCHECK(!cookie_settings_.get()); |
| 1142 cookie_settings_ = cookie_settings; | 1142 cookie_settings_ = cookie_settings; |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 void ProfileIOData::set_signin_names_for_testing( | 1145 void ProfileIOData::set_signin_names_for_testing( |
| 1146 SigninNamesOnIOThread* signin_names) { | 1146 SigninNamesOnIOThread* signin_names) { |
| 1147 signin_names_.reset(signin_names); | 1147 signin_names_.reset(signin_names); |
| 1148 } | 1148 } |
| OLD | NEW |