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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 content::ResourceContext* rc) { | 596 content::ResourceContext* rc) { |
597 return (static_cast<ResourceContext*>(rc))->io_data_; | 597 return (static_cast<ResourceContext*>(rc))->io_data_; |
598 } | 598 } |
599 | 599 |
600 // static | 600 // static |
601 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { | 601 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
602 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); | 602 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); |
603 static const char* const kProtocolList[] = { | 603 static const char* const kProtocolList[] = { |
604 content::kFileScheme, | 604 content::kFileScheme, |
605 chrome::kChromeDevToolsScheme, | 605 chrome::kChromeDevToolsScheme, |
| 606 chrome::kDomDistillerScheme, |
606 extensions::kExtensionScheme, | 607 extensions::kExtensionScheme, |
607 extensions::kExtensionResourceScheme, | 608 extensions::kExtensionResourceScheme, |
608 chrome::kChromeUIScheme, | 609 chrome::kChromeUIScheme, |
609 chrome::kDataScheme, | 610 chrome::kDataScheme, |
610 #if defined(OS_CHROMEOS) | 611 #if defined(OS_CHROMEOS) |
611 chrome::kDriveScheme, | 612 chrome::kDriveScheme, |
612 #endif // defined(OS_CHROMEOS) | 613 #endif // defined(OS_CHROMEOS) |
613 chrome::kAboutScheme, | 614 chrome::kAboutScheme, |
614 #if !defined(DISABLE_FTP_SUPPORT) | 615 #if !defined(DISABLE_FTP_SUPPORT) |
615 content::kFtpScheme, | 616 content::kFtpScheme, |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 void ProfileIOData::SetCookieSettingsForTesting( | 1124 void ProfileIOData::SetCookieSettingsForTesting( |
1124 CookieSettings* cookie_settings) { | 1125 CookieSettings* cookie_settings) { |
1125 DCHECK(!cookie_settings_.get()); | 1126 DCHECK(!cookie_settings_.get()); |
1126 cookie_settings_ = cookie_settings; | 1127 cookie_settings_ = cookie_settings; |
1127 } | 1128 } |
1128 | 1129 |
1129 void ProfileIOData::set_signin_names_for_testing( | 1130 void ProfileIOData::set_signin_names_for_testing( |
1130 SigninNamesOnIOThread* signin_names) { | 1131 SigninNamesOnIOThread* signin_names) { |
1131 signin_names_.reset(signin_names); | 1132 signin_names_.reset(signin_names); |
1132 } | 1133 } |
OLD | NEW |