| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 DCHECK(protocol_handler_registry_); | 148 DCHECK(protocol_handler_registry_); |
| 149 } | 149 } |
| 150 | 150 |
| 151 virtual ~ProtocolHandlerRegistryInterceptor() {} | 151 virtual ~ProtocolHandlerRegistryInterceptor() {} |
| 152 | 152 |
| 153 virtual net::URLRequestJob* MaybeIntercept( | 153 virtual net::URLRequestJob* MaybeIntercept( |
| 154 net::URLRequest* request) const OVERRIDE { | 154 net::URLRequest* request) const OVERRIDE { |
| 155 return protocol_handler_registry_->MaybeCreateJob(request); | 155 return protocol_handler_registry_->MaybeCreateJob(request); |
| 156 } | 156 } |
| 157 | 157 |
| 158 virtual bool WillHandleProtocol(const std::string& protocol) const { |
| 159 return protocol_handler_registry_->IsHandledProtocol(protocol); |
| 160 } |
| 161 |
| 158 virtual net::URLRequestJob* MaybeInterceptRedirect( | 162 virtual net::URLRequestJob* MaybeInterceptRedirect( |
| 159 const GURL& url, net::URLRequest* request) const OVERRIDE { | 163 const GURL& url, net::URLRequest* request) const OVERRIDE { |
| 160 return NULL; | 164 return NULL; |
| 161 } | 165 } |
| 162 | 166 |
| 163 virtual net::URLRequestJob* MaybeInterceptResponse( | 167 virtual net::URLRequestJob* MaybeInterceptResponse( |
| 164 net::URLRequest* request) const OVERRIDE { | 168 net::URLRequest* request) const OVERRIDE { |
| 165 return NULL; | 169 return NULL; |
| 166 } | 170 } |
| 167 | 171 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 context->set_appcache_service(profile_params_->appcache_service); | 500 context->set_appcache_service(profile_params_->appcache_service); |
| 497 context->set_blob_storage_context(profile_params_->blob_storage_context); | 501 context->set_blob_storage_context(profile_params_->blob_storage_context); |
| 498 context->set_file_system_context(profile_params_->file_system_context); | 502 context->set_file_system_context(profile_params_->file_system_context); |
| 499 context->set_extension_info_map(profile_params_->extension_info_map); | 503 context->set_extension_info_map(profile_params_->extension_info_map); |
| 500 } | 504 } |
| 501 | 505 |
| 502 void ProfileIOData::ShutdownOnUIThread() { | 506 void ProfileIOData::ShutdownOnUIThread() { |
| 503 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 507 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 504 enable_referrers_.Destroy(); | 508 enable_referrers_.Destroy(); |
| 505 } | 509 } |
| OLD | NEW |