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 "content/browser/storage_partition_impl_map.h" | 5 #include "content/browser/storage_partition_impl_map.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 chrome::kFileSystemScheme, | 184 chrome::kFileSystemScheme, |
185 CreateFileSystemProtocolHandler(file_system_context)); | 185 CreateFileSystemProtocolHandler(file_system_context)); |
186 DCHECK(set_protocol); | 186 DCHECK(set_protocol); |
187 | 187 |
188 job_factory->AddInterceptor( | 188 job_factory->AddInterceptor( |
189 new DeveloperProtocolHandler(appcache_service, | 189 new DeveloperProtocolHandler(appcache_service, |
190 blob_storage_context->controller())); | 190 blob_storage_context->controller())); |
191 | 191 |
192 set_protocol = job_factory->SetProtocolHandler( | 192 set_protocol = job_factory->SetProtocolHandler( |
193 chrome::kChromeUIScheme, | 193 chrome::kChromeUIScheme, |
194 ChromeURLDataManagerBackend::CreateProtocolHandler( | 194 URLDataManagerBackend::CreateProtocolHandler( |
195 GetURLDataManagerForResourceContext(resource_context), | 195 GetURLDataManagerForResourceContext(resource_context), |
196 off_the_record)); | 196 off_the_record)); |
197 DCHECK(set_protocol); | 197 DCHECK(set_protocol); |
198 | 198 |
199 set_protocol = job_factory->SetProtocolHandler( | 199 set_protocol = job_factory->SetProtocolHandler( |
200 chrome::kChromeDevToolsScheme, | 200 chrome::kChromeDevToolsScheme, |
201 CreateDevToolsProtocolHandler( | 201 CreateDevToolsProtocolHandler( |
202 GetURLDataManagerForResourceContext(resource_context), | 202 GetURLDataManagerForResourceContext(resource_context), |
203 off_the_record)); | 203 off_the_record)); |
204 DCHECK(set_protocol); | 204 DCHECK(set_protocol); |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 | 626 |
627 // We do not call InitializeURLRequestContext() for media contexts because, | 627 // We do not call InitializeURLRequestContext() for media contexts because, |
628 // other than the HTTP cache, the media contexts share the same backing | 628 // other than the HTTP cache, the media contexts share the same backing |
629 // objects as their associated "normal" request context. Thus, the previous | 629 // objects as their associated "normal" request context. Thus, the previous |
630 // call serves to initialize the media request context for this storage | 630 // call serves to initialize the media request context for this storage |
631 // partition as well. | 631 // partition as well. |
632 } | 632 } |
633 } | 633 } |
634 | 634 |
635 } // namespace content | 635 } // namespace content |
OLD | NEW |