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

Unified Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.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: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
index ead79df44b9dc3e8ea33339eb87a6c913da6d7c2..2866787b1d375a62d59fd5375c72367b39728a0a 100644
--- a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
+++ b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
@@ -26,17 +26,16 @@
#include "extensions/common/extension.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/gdata_wapi_parser.h"
-#include "webkit/common/fileapi/file_system_util.h"
+#include "storage/common/fileapi/file_system_util.h"
namespace sync_file_system {
namespace drive_backend {
namespace {
-bool BuildFileSystemURL(
- MetadataDatabase* metadata_database,
- const FileTracker& tracker,
- fileapi::FileSystemURL* url) {
+bool BuildFileSystemURL(MetadataDatabase* metadata_database,
+ const FileTracker& tracker,
+ storage::FileSystemURL* url) {
base::FilePath path;
if (!metadata_database->BuildPathForTracker(
tracker.tracker_id(), &path))
@@ -80,16 +79,14 @@ scoped_ptr<FileMetadata> GetFileMetadata(MetadataDatabase* database,
// Creates a temporary file in |dir_path|. This must be called on an
// IO-allowed task runner, and the runner must be given as |file_task_runner|.
-webkit_blob::ScopedFile CreateTemporaryFile(
- base::TaskRunner* file_task_runner) {
+storage::ScopedFile CreateTemporaryFile(base::TaskRunner* file_task_runner) {
base::FilePath temp_file_path;
if (!base::CreateTemporaryFile(&temp_file_path))
- return webkit_blob::ScopedFile();
+ return storage::ScopedFile();
- return webkit_blob::ScopedFile(
- temp_file_path,
- webkit_blob::ScopedFile::DELETE_ON_SCOPE_OUT,
- file_task_runner);
+ return storage::ScopedFile(temp_file_path,
+ storage::ScopedFile::DELETE_ON_SCOPE_OUT,
+ file_task_runner);
}
} // namespace
@@ -690,7 +687,7 @@ void RemoteToLocalSyncer::DeleteLocalFile(scoped_ptr<SyncTaskToken> token) {
void RemoteToLocalSyncer::DownloadFile(scoped_ptr<SyncTaskToken> token) {
DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksOnCurrentThread());
- webkit_blob::ScopedFile file = CreateTemporaryFile(
+ storage::ScopedFile file = CreateTemporaryFile(
make_scoped_refptr(sync_context_->GetWorkerTaskRunner()));
base::FilePath path = file.path();
@@ -704,7 +701,7 @@ void RemoteToLocalSyncer::DownloadFile(scoped_ptr<SyncTaskToken> token) {
}
void RemoteToLocalSyncer::DidDownloadFile(scoped_ptr<SyncTaskToken> token,
- webkit_blob::ScopedFile file,
+ storage::ScopedFile file,
google_apis::GDataErrorCode error,
const base::FilePath&) {
DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksOnCurrentThread());
@@ -737,7 +734,7 @@ void RemoteToLocalSyncer::DidDownloadFile(scoped_ptr<SyncTaskToken> token,
}
void RemoteToLocalSyncer::DidApplyDownload(scoped_ptr<SyncTaskToken> token,
- webkit_blob::ScopedFile,
+ storage::ScopedFile,
SyncStatusCode status) {
SyncCompleted(token.Pass(), status);
}

Powered by Google App Engine
This is Rietveld 408576698