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

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: sync (r198785) 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 request->url().host() == kChromeUIHistogramHost) { 405 request->url().host() == kChromeUIHistogramHost) {
406 return new HistogramInternalsRequestJob(request, network_delegate); 406 return new HistogramInternalsRequestJob(request, network_delegate);
407 } 407 }
408 408
409 // Fall back to using a custom handler 409 // Fall back to using a custom handler
410 return new URLRequestChromeJob( 410 return new URLRequestChromeJob(
411 request, network_delegate, 411 request, network_delegate,
412 GetURLDataManagerForResourceContext(resource_context_), is_incognito_); 412 GetURLDataManagerForResourceContext(resource_context_), is_incognito_);
413 } 413 }
414 414
415 virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE {
416 return false;
417 }
418
415 private: 419 private:
416 // These members are owned by ProfileIOData, which owns this ProtocolHandler. 420 // These members are owned by ProfileIOData, which owns this ProtocolHandler.
417 content::ResourceContext* const resource_context_; 421 content::ResourceContext* const resource_context_;
418 422
419 // True when generated from an incognito profile. 423 // True when generated from an incognito profile.
420 const bool is_incognito_; 424 const bool is_incognito_;
421 AppCacheService* appcache_service_; 425 AppCacheService* appcache_service_;
422 ChromeBlobStorageContext* blob_storage_context_; 426 ChromeBlobStorageContext* blob_storage_context_;
423 427
424 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler); 428 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler);
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 646
643 } // namespace 647 } // namespace
644 648
645 net::URLRequestJobFactory::ProtocolHandler* 649 net::URLRequestJobFactory::ProtocolHandler*
646 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, 650 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context,
647 bool is_incognito) { 651 bool is_incognito) {
648 return new DevToolsJobFactory(resource_context, is_incognito); 652 return new DevToolsJobFactory(resource_context, is_incognito);
649 } 653 }
650 654
651 } // namespace content 655 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_unittest.cc ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698