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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 content::ResourceContext* rc) { | 482 content::ResourceContext* rc) { |
483 return (static_cast<ResourceContext*>(rc))->io_data_; | 483 return (static_cast<ResourceContext*>(rc))->io_data_; |
484 } | 484 } |
485 | 485 |
486 // static | 486 // static |
487 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { | 487 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
488 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); | 488 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); |
489 static const char* const kProtocolList[] = { | 489 static const char* const kProtocolList[] = { |
490 chrome::kFileScheme, | 490 chrome::kFileScheme, |
491 chrome::kChromeDevToolsScheme, | 491 chrome::kChromeDevToolsScheme, |
| 492 chrome::kDomDistillerScheme, |
492 extensions::kExtensionScheme, | 493 extensions::kExtensionScheme, |
493 chrome::kExtensionResourceScheme, | 494 chrome::kExtensionResourceScheme, |
494 chrome::kChromeUIScheme, | 495 chrome::kChromeUIScheme, |
495 chrome::kDataScheme, | 496 chrome::kDataScheme, |
496 #if defined(OS_CHROMEOS) | 497 #if defined(OS_CHROMEOS) |
497 chrome::kDriveScheme, | 498 chrome::kDriveScheme, |
498 #endif // defined(OS_CHROMEOS) | 499 #endif // defined(OS_CHROMEOS) |
499 chrome::kAboutScheme, | 500 chrome::kAboutScheme, |
500 #if !defined(DISABLE_FTP_SUPPORT) | 501 #if !defined(DISABLE_FTP_SUPPORT) |
501 chrome::kFtpScheme, | 502 chrome::kFtpScheme, |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 void ProfileIOData::SetCookieSettingsForTesting( | 961 void ProfileIOData::SetCookieSettingsForTesting( |
961 CookieSettings* cookie_settings) { | 962 CookieSettings* cookie_settings) { |
962 DCHECK(!cookie_settings_.get()); | 963 DCHECK(!cookie_settings_.get()); |
963 cookie_settings_ = cookie_settings; | 964 cookie_settings_ = cookie_settings; |
964 } | 965 } |
965 | 966 |
966 void ProfileIOData::set_signin_names_for_testing( | 967 void ProfileIOData::set_signin_names_for_testing( |
967 SigninNamesOnIOThread* signin_names) { | 968 SigninNamesOnIOThread* signin_names) { |
968 signin_names_.reset(signin_names); | 969 signin_names_.reset(signin_names); |
969 } | 970 } |
OLD | NEW |