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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 content::ResourceContext* rc) { | 491 content::ResourceContext* rc) { |
492 return (static_cast<ResourceContext*>(rc))->io_data_; | 492 return (static_cast<ResourceContext*>(rc))->io_data_; |
493 } | 493 } |
494 | 494 |
495 // static | 495 // static |
496 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { | 496 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
497 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); | 497 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); |
498 static const char* const kProtocolList[] = { | 498 static const char* const kProtocolList[] = { |
499 chrome::kFileScheme, | 499 chrome::kFileScheme, |
500 chrome::kChromeDevToolsScheme, | 500 chrome::kChromeDevToolsScheme, |
| 501 chrome::kDomDistillerScheme, |
501 extensions::kExtensionScheme, | 502 extensions::kExtensionScheme, |
502 chrome::kExtensionResourceScheme, | 503 chrome::kExtensionResourceScheme, |
503 chrome::kChromeUIScheme, | 504 chrome::kChromeUIScheme, |
504 chrome::kDataScheme, | 505 chrome::kDataScheme, |
505 #if defined(OS_CHROMEOS) | 506 #if defined(OS_CHROMEOS) |
506 chrome::kDriveScheme, | 507 chrome::kDriveScheme, |
507 #endif // defined(OS_CHROMEOS) | 508 #endif // defined(OS_CHROMEOS) |
508 chrome::kAboutScheme, | 509 chrome::kAboutScheme, |
509 #if !defined(DISABLE_FTP_SUPPORT) | 510 #if !defined(DISABLE_FTP_SUPPORT) |
510 content::kFtpScheme, | 511 content::kFtpScheme, |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 void ProfileIOData::SetCookieSettingsForTesting( | 987 void ProfileIOData::SetCookieSettingsForTesting( |
987 CookieSettings* cookie_settings) { | 988 CookieSettings* cookie_settings) { |
988 DCHECK(!cookie_settings_.get()); | 989 DCHECK(!cookie_settings_.get()); |
989 cookie_settings_ = cookie_settings; | 990 cookie_settings_ = cookie_settings; |
990 } | 991 } |
991 | 992 |
992 void ProfileIOData::set_signin_names_for_testing( | 993 void ProfileIOData::set_signin_names_for_testing( |
993 SigninNamesOnIOThread* signin_names) { | 994 SigninNamesOnIOThread* signin_names) { |
994 signin_names_.reset(signin_names); | 995 signin_names_.reset(signin_names); |
995 } | 996 } |
OLD | NEW |