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

Unified Diff: storage/browser/fileapi/file_system_url_request_job_factory.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « storage/browser/fileapi/file_system_url_request_job_factory.h ('k') | storage/browser/fileapi/file_system_usage_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698