| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 request->url().host() == chrome::kChromeUIHistogramHost) { | 397 request->url().host() == chrome::kChromeUIHistogramHost) { |
| 398 return new HistogramInternalsRequestJob(request, network_delegate); | 398 return new HistogramInternalsRequestJob(request, network_delegate); |
| 399 } | 399 } |
| 400 | 400 |
| 401 // Fall back to using a custom handler | 401 // Fall back to using a custom handler |
| 402 return new URLRequestChromeJob( | 402 return new URLRequestChromeJob( |
| 403 request, network_delegate, | 403 request, network_delegate, |
| 404 GetURLDataManagerForResourceContext(resource_context_), is_incognito_); | 404 GetURLDataManagerForResourceContext(resource_context_), is_incognito_); |
| 405 } | 405 } |
| 406 | 406 |
| 407 virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE { | |
| 408 return false; | |
| 409 } | |
| 410 | |
| 411 private: | 407 private: |
| 412 // These members are owned by ProfileIOData, which owns this ProtocolHandler. | 408 // These members are owned by ProfileIOData, which owns this ProtocolHandler. |
| 413 content::ResourceContext* const resource_context_; | 409 content::ResourceContext* const resource_context_; |
| 414 | 410 |
| 415 // True when generated from an incognito profile. | 411 // True when generated from an incognito profile. |
| 416 const bool is_incognito_; | 412 const bool is_incognito_; |
| 417 AppCacheService* appcache_service_; | 413 AppCacheService* appcache_service_; |
| 418 ChromeBlobStorageContext* blob_storage_context_; | 414 ChromeBlobStorageContext* blob_storage_context_; |
| 419 | 415 |
| 420 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler); | 416 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 | 617 |
| 622 } // namespace | 618 } // namespace |
| 623 | 619 |
| 624 net::URLRequestJobFactory::ProtocolHandler* | 620 net::URLRequestJobFactory::ProtocolHandler* |
| 625 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, | 621 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, |
| 626 bool is_incognito) { | 622 bool is_incognito) { |
| 627 return new DevToolsJobFactory(resource_context, is_incognito); | 623 return new DevToolsJobFactory(resource_context, is_incognito); |
| 628 } | 624 } |
| 629 | 625 |
| 630 } // namespace content | 626 } // namespace content |
| OLD | NEW |