1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h" 6 7#include "base/logging.h" 8#include "chrome/browser/chromeos/fileapi/external_file_url_request_job.h" 9#include "net/url_request/url_request.h" 10#include "url/gurl.h" 11 12namespace chromeos { 13 14ExternalFileProtocolHandler::ExternalFileProtocolHandler(void* profile_id) 15 : profile_id_(profile_id) { 16} 17 18ExternalFileProtocolHandler::~ExternalFileProtocolHandler() { 19} 20 21net::URLRequestJob* ExternalFileProtocolHandler::MaybeCreateJob( 22 net::URLRequest* request, 23 net::NetworkDelegate* network_delegate) const { 24 DVLOG(1) << "Handling url: " << request->url().spec(); 25 return new ExternalFileURLRequestJob(profile_id_, request, network_delegate); 26} 27 28} // namespace chromeos 29