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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 10700117: Replaced static URLRequestFileJob factory with non-static protocol handler for File jobs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 4 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 "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 set_protocol = job_factory->SetProtocolHandler( 552 set_protocol = job_factory->SetProtocolHandler(
553 chrome::kExtensionResourceScheme, 553 chrome::kExtensionResourceScheme,
554 CreateExtensionResourceProtocolHandler()); 554 CreateExtensionResourceProtocolHandler());
555 DCHECK(set_protocol); 555 DCHECK(set_protocol);
556 set_protocol = job_factory->SetProtocolHandler( 556 set_protocol = job_factory->SetProtocolHandler(
557 chrome::kChromeUIScheme, 557 chrome::kChromeUIScheme,
558 ChromeURLDataManagerBackend::CreateProtocolHandler( 558 ChromeURLDataManagerBackend::CreateProtocolHandler(
559 chrome_url_data_manager_backend_.get())); 559 chrome_url_data_manager_backend_.get()));
560 DCHECK(set_protocol); 560 DCHECK(set_protocol);
561 set_protocol = job_factory->SetProtocolHandler( 561 set_protocol = job_factory->SetProtocolHandler(
562 chrome::kChromeDevToolsScheme,
563 CreateDevToolsProtocolHandler(chrome_url_data_manager_backend_.get()));
564 DCHECK(set_protocol);
565 set_protocol = job_factory->SetProtocolHandler(
566 chrome::kDataScheme, new net::DataProtocolHandler()); 562 chrome::kDataScheme, new net::DataProtocolHandler());
567 DCHECK(set_protocol); 563 DCHECK(set_protocol);
568 #if defined(OS_CHROMEOS) 564 #if defined(OS_CHROMEOS)
569 if (!is_incognito()) { 565 if (!is_incognito()) {
570 set_protocol = job_factory->SetProtocolHandler( 566 set_protocol = job_factory->SetProtocolHandler(
571 chrome::kDriveScheme, new gdata::GDataProtocolHandler()); 567 chrome::kDriveScheme, new gdata::GDataProtocolHandler());
572 DCHECK(set_protocol); 568 DCHECK(set_protocol);
573 } 569 }
574 #if !defined(GOOGLE_CHROME_BUILD) 570 #if !defined(GOOGLE_CHROME_BUILD)
575 // Install the GView request interceptor that will redirect requests 571 // Install the GView request interceptor that will redirect requests
(...skipping 24 matching lines...) Expand all
600 } 596 }
601 597
602 void ProfileIOData::set_server_bound_cert_service( 598 void ProfileIOData::set_server_bound_cert_service(
603 net::ServerBoundCertService* server_bound_cert_service) const { 599 net::ServerBoundCertService* server_bound_cert_service) const {
604 server_bound_cert_service_.reset(server_bound_cert_service); 600 server_bound_cert_service_.reset(server_bound_cert_service);
605 } 601 }
606 602
607 void ProfileIOData::DestroyResourceContext() { 603 void ProfileIOData::DestroyResourceContext() {
608 resource_context_.reset(); 604 resource_context_.reset();
609 } 605 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/ui/webui/chrome_url_data_manager_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698