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/webui/url_data_manager_backend.h" | 5 #include "content/browser/webui/url_data_manager_backend.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 // Next check for chrome://appcache-internals/, which uses its own job type. | 381 // Next check for chrome://appcache-internals/, which uses its own job type. |
382 if (request->url().SchemeIs(chrome::kChromeUIScheme) && | 382 if (request->url().SchemeIs(chrome::kChromeUIScheme) && |
383 request->url().host() == kChromeUIAppCacheInternalsHost) { | 383 request->url().host() == kChromeUIAppCacheInternalsHost) { |
384 return appcache::ViewAppCacheInternalsJobFactory::CreateJobForRequest( | 384 return appcache::ViewAppCacheInternalsJobFactory::CreateJobForRequest( |
385 request, network_delegate, appcache_service_); | 385 request, network_delegate, appcache_service_); |
386 } | 386 } |
387 | 387 |
388 // Next check for chrome://blob-internals/, which uses its own job type. | 388 // Next check for chrome://blob-internals/, which uses its own job type. |
389 if (ViewBlobInternalsJobFactory::IsSupportedURL(request->url())) { | 389 if (ViewBlobInternalsJobFactory::IsSupportedURL(request->url())) { |
390 return ViewBlobInternalsJobFactory::CreateJobForRequest( | 390 return ViewBlobInternalsJobFactory::CreateJobForRequest( |
391 request, network_delegate, blob_storage_context_->controller()); | 391 request, network_delegate, blob_storage_context_->context()); |
392 } | 392 } |
393 | 393 |
394 #if defined(USE_TCMALLOC) | 394 #if defined(USE_TCMALLOC) |
395 // Next check for chrome://tcmalloc/, which uses its own job type. | 395 // Next check for chrome://tcmalloc/, which uses its own job type. |
396 if (request->url().SchemeIs(chrome::kChromeUIScheme) && | 396 if (request->url().SchemeIs(chrome::kChromeUIScheme) && |
397 request->url().host() == kChromeUITcmallocHost) { | 397 request->url().host() == kChromeUITcmallocHost) { |
398 return new TcmallocInternalsRequestJob(request, network_delegate); | 398 return new TcmallocInternalsRequestJob(request, network_delegate); |
399 } | 399 } |
400 #endif | 400 #endif |
401 | 401 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 | 646 |
647 } // namespace | 647 } // namespace |
648 | 648 |
649 net::URLRequestJobFactory::ProtocolHandler* | 649 net::URLRequestJobFactory::ProtocolHandler* |
650 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, | 650 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, |
651 bool is_incognito) { | 651 bool is_incognito) { |
652 return new DevToolsJobFactory(resource_context, is_incognito); | 652 return new DevToolsJobFactory(resource_context, is_incognito); |
653 } | 653 } |
654 | 654 |
655 } // namespace content | 655 } // namespace content |
OLD | NEW |