Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: content/browser/webui/url_data_manager_backend.cc

Issue 11931024: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix latent merge conflict with r192649 Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 request->url().host() == kChromeUIHistogramHost) { 403 request->url().host() == kChromeUIHistogramHost) {
404 return new HistogramInternalsRequestJob(request, network_delegate); 404 return new HistogramInternalsRequestJob(request, network_delegate);
405 } 405 }
406 406
407 // Fall back to using a custom handler 407 // Fall back to using a custom handler
408 return new URLRequestChromeJob( 408 return new URLRequestChromeJob(
409 request, network_delegate, 409 request, network_delegate,
410 GetURLDataManagerForResourceContext(resource_context_), is_incognito_); 410 GetURLDataManagerForResourceContext(resource_context_), is_incognito_);
411 } 411 }
412 412
413 virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE {
414 return false;
415 }
416
413 private: 417 private:
414 // These members are owned by ProfileIOData, which owns this ProtocolHandler. 418 // These members are owned by ProfileIOData, which owns this ProtocolHandler.
415 content::ResourceContext* const resource_context_; 419 content::ResourceContext* const resource_context_;
416 420
417 // True when generated from an incognito profile. 421 // True when generated from an incognito profile.
418 const bool is_incognito_; 422 const bool is_incognito_;
419 AppCacheService* appcache_service_; 423 AppCacheService* appcache_service_;
420 ChromeBlobStorageContext* blob_storage_context_; 424 ChromeBlobStorageContext* blob_storage_context_;
421 425
422 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler); 426 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 627
624 } // namespace 628 } // namespace
625 629
626 net::URLRequestJobFactory::ProtocolHandler* 630 net::URLRequestJobFactory::ProtocolHandler*
627 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, 631 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context,
628 bool is_incognito) { 632 bool is_incognito) {
629 return new DevToolsJobFactory(resource_context, is_incognito); 633 return new DevToolsJobFactory(resource_context, is_incognito);
630 } 634 }
631 635
632 } // namespace content 636 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698