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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 chrome::kExtensionScheme, | 312 chrome::kExtensionScheme, |
313 chrome::kChromeUIScheme, | 313 chrome::kChromeUIScheme, |
314 chrome::kChromeDevToolsScheme, | 314 chrome::kChromeDevToolsScheme, |
315 #if defined(OS_CHROMEOS) | 315 #if defined(OS_CHROMEOS) |
316 chrome::kMetadataScheme, | 316 chrome::kMetadataScheme, |
317 chrome::kDriveScheme, | 317 chrome::kDriveScheme, |
318 #endif // defined(OS_CHROMEOS) | 318 #endif // defined(OS_CHROMEOS) |
319 chrome::kBlobScheme, | 319 chrome::kBlobScheme, |
320 chrome::kFileSystemScheme, | 320 chrome::kFileSystemScheme, |
321 chrome::kExtensionResourceScheme, | 321 chrome::kExtensionResourceScheme, |
| 322 chrome::kFtpScheme, |
322 }; | 323 }; |
323 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { | 324 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { |
324 if (scheme == kProtocolList[i]) | 325 if (scheme == kProtocolList[i]) |
325 return true; | 326 return true; |
326 } | 327 } |
327 return net::URLRequest::IsHandledProtocol(scheme); | 328 return net::URLRequest::IsHandledProtocol(scheme); |
328 } | 329 } |
329 | 330 |
330 bool ProfileIOData::IsHandledURL(const GURL& url) { | 331 bool ProfileIOData::IsHandledURL(const GURL& url) { |
331 if (!url.is_valid()) { | 332 if (!url.is_valid()) { |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 } | 646 } |
646 | 647 |
647 void ProfileIOData::set_server_bound_cert_service( | 648 void ProfileIOData::set_server_bound_cert_service( |
648 net::ServerBoundCertService* server_bound_cert_service) const { | 649 net::ServerBoundCertService* server_bound_cert_service) const { |
649 server_bound_cert_service_.reset(server_bound_cert_service); | 650 server_bound_cert_service_.reset(server_bound_cert_service); |
650 } | 651 } |
651 | 652 |
652 void ProfileIOData::DestroyResourceContext() { | 653 void ProfileIOData::DestroyResourceContext() { |
653 resource_context_.reset(); | 654 resource_context_.reset(); |
654 } | 655 } |
OLD | NEW |