| Index: storage/browser/fileapi/file_system_url_request_job_factory.cc
|
| diff --git a/webkit/browser/fileapi/file_system_url_request_job_factory.cc b/storage/browser/fileapi/file_system_url_request_job_factory.cc
|
| similarity index 78%
|
| rename from webkit/browser/fileapi/file_system_url_request_job_factory.cc
|
| rename to storage/browser/fileapi/file_system_url_request_job_factory.cc
|
| index 3add372e5e647eb9413171c6fc53bf021c8a5915..517e0354eac9ab810655f4f91bfac81cba544e7f 100644
|
| --- a/webkit/browser/fileapi/file_system_url_request_job_factory.cc
|
| +++ b/storage/browser/fileapi/file_system_url_request_job_factory.cc
|
| @@ -2,17 +2,17 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "webkit/browser/fileapi/file_system_url_request_job_factory.h"
|
| +#include "storage/browser/fileapi/file_system_url_request_job_factory.h"
|
|
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "net/url_request/url_request.h"
|
| -#include "webkit/browser/fileapi/file_system_dir_url_request_job.h"
|
| -#include "webkit/browser/fileapi/file_system_url_request_job.h"
|
| +#include "storage/browser/fileapi/file_system_dir_url_request_job.h"
|
| +#include "storage/browser/fileapi/file_system_url_request_job.h"
|
|
|
| -namespace fileapi {
|
| +namespace storage {
|
|
|
| namespace {
|
|
|
| @@ -40,15 +40,16 @@ class FileSystemProtocolHandler
|
| FileSystemProtocolHandler::FileSystemProtocolHandler(
|
| const std::string& storage_domain,
|
| FileSystemContext* context)
|
| - : storage_domain_(storage_domain),
|
| - file_system_context_(context) {
|
| + : storage_domain_(storage_domain), file_system_context_(context) {
|
| DCHECK(file_system_context_);
|
| }
|
|
|
| -FileSystemProtocolHandler::~FileSystemProtocolHandler() {}
|
| +FileSystemProtocolHandler::~FileSystemProtocolHandler() {
|
| +}
|
|
|
| net::URLRequestJob* FileSystemProtocolHandler::MaybeCreateJob(
|
| - net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
|
| + net::URLRequest* request,
|
| + net::NetworkDelegate* network_delegate) const {
|
| const std::string path = request->url().path();
|
|
|
| // If the path ends with a /, we know it's a directory. If the path refers
|
| @@ -65,9 +66,10 @@ net::URLRequestJob* FileSystemProtocolHandler::MaybeCreateJob(
|
| } // anonymous namespace
|
|
|
| net::URLRequestJobFactory::ProtocolHandler* CreateFileSystemProtocolHandler(
|
| - const std::string& storage_domain, FileSystemContext* context) {
|
| + const std::string& storage_domain,
|
| + FileSystemContext* context) {
|
| DCHECK(context);
|
| return new FileSystemProtocolHandler(storage_domain, context);
|
| }
|
|
|
| -} // namespace fileapi
|
| +} // namespace storage
|
|
|