| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 const GURL& url, net::URLRequest* request) const OVERRIDE { | 136 const GURL& url, net::URLRequest* request) const OVERRIDE { |
| 137 return NULL; | 137 return NULL; |
| 138 } | 138 } |
| 139 | 139 |
| 140 virtual net::URLRequestJob* MaybeInterceptResponse( | 140 virtual net::URLRequestJob* MaybeInterceptResponse( |
| 141 net::URLRequest* request) const OVERRIDE { | 141 net::URLRequest* request) const OVERRIDE { |
| 142 return NULL; | 142 return NULL; |
| 143 } | 143 } |
| 144 | 144 |
| 145 private: | 145 private: |
| 146 const scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | 146 const ProtocolHandlerRegistry* protocol_handler_registry_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistryInterceptor); | 148 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistryInterceptor); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 Profile* GetProfileOnUI(ProfileManager* profile_manager, Profile* profile) { | 151 Profile* GetProfileOnUI(ProfileManager* profile_manager, Profile* profile) { |
| 152 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 152 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 153 DCHECK(profile); | 153 DCHECK(profile); |
| 154 if (profile_manager->IsValidProfile(profile)) | 154 if (profile_manager->IsValidProfile(profile)) |
| 155 return profile; | 155 return profile; |
| 156 return NULL; | 156 return NULL; |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 } | 583 } |
| 584 | 584 |
| 585 void ProfileIOData::set_server_bound_cert_service( | 585 void ProfileIOData::set_server_bound_cert_service( |
| 586 net::ServerBoundCertService* server_bound_cert_service) const { | 586 net::ServerBoundCertService* server_bound_cert_service) const { |
| 587 server_bound_cert_service_.reset(server_bound_cert_service); | 587 server_bound_cert_service_.reset(server_bound_cert_service); |
| 588 } | 588 } |
| 589 | 589 |
| 590 void ProfileIOData::DestroyResourceContext() { | 590 void ProfileIOData::DestroyResourceContext() { |
| 591 resource_context_.reset(); | 591 resource_context_.reset(); |
| 592 } | 592 } |
| OLD | NEW |