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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 } | 689 } |
690 | 690 |
691 // static | 691 // static |
692 ProfileIOData* ProfileIOData::FromResourceContext( | 692 ProfileIOData* ProfileIOData::FromResourceContext( |
693 content::ResourceContext* rc) { | 693 content::ResourceContext* rc) { |
694 return (static_cast<ResourceContext*>(rc))->io_data_; | 694 return (static_cast<ResourceContext*>(rc))->io_data_; |
695 } | 695 } |
696 | 696 |
697 // static | 697 // static |
698 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { | 698 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
699 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); | 699 DCHECK_EQ(scheme, base::StringToLowerASCII(scheme)); |
700 static const char* const kProtocolList[] = { | 700 static const char* const kProtocolList[] = { |
701 url::kFileScheme, | 701 url::kFileScheme, |
702 content::kChromeDevToolsScheme, | 702 content::kChromeDevToolsScheme, |
703 dom_distiller::kDomDistillerScheme, | 703 dom_distiller::kDomDistillerScheme, |
704 #if defined(ENABLE_EXTENSIONS) | 704 #if defined(ENABLE_EXTENSIONS) |
705 extensions::kExtensionScheme, | 705 extensions::kExtensionScheme, |
706 extensions::kExtensionResourceScheme, | 706 extensions::kExtensionResourceScheme, |
707 #endif | 707 #endif |
708 content::kChromeUIScheme, | 708 content::kChromeUIScheme, |
709 url::kDataScheme, | 709 url::kDataScheme, |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 void ProfileIOData::SetCookieSettingsForTesting( | 1316 void ProfileIOData::SetCookieSettingsForTesting( |
1317 CookieSettings* cookie_settings) { | 1317 CookieSettings* cookie_settings) { |
1318 DCHECK(!cookie_settings_.get()); | 1318 DCHECK(!cookie_settings_.get()); |
1319 cookie_settings_ = cookie_settings; | 1319 cookie_settings_ = cookie_settings; |
1320 } | 1320 } |
1321 | 1321 |
1322 void ProfileIOData::set_signin_names_for_testing( | 1322 void ProfileIOData::set_signin_names_for_testing( |
1323 SigninNamesOnIOThread* signin_names) { | 1323 SigninNamesOnIOThread* signin_names) { |
1324 signin_names_.reset(signin_names); | 1324 signin_names_.reset(signin_names); |
1325 } | 1325 } |
OLD | NEW |