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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_service.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/local/local_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_service.cc b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
index a5cafcb7cba6323ebbe778012cc2896789936005..cb6f4f49c34f45dba6496142cbb54782a1fa08f3 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
@@ -23,12 +23,12 @@
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_set.h"
#include "url/gurl.h"
-#include "webkit/browser/fileapi/file_system_context.h"
-#include "webkit/browser/fileapi/file_system_url.h"
-#include "webkit/common/blob/scoped_file.h"
+#include "storage/browser/fileapi/file_system_context.h"
+#include "storage/browser/fileapi/file_system_url.h"
+#include "storage/common/blob/scoped_file.h"
using content::BrowserThread;
-using fileapi::FileSystemURL;
+using storage::FileSystemURL;
namespace sync_file_system {
@@ -38,7 +38,7 @@ void PrepareForProcessRemoteChangeCallbackAdapter(
const RemoteChangeProcessor::PrepareChangeCallback& callback,
SyncStatusCode status,
const LocalFileSyncInfo& sync_file_info,
- webkit_blob::ScopedFile snapshot) {
+ storage::ScopedFile snapshot) {
callback.Run(status, sync_file_info.metadata, sync_file_info.changes);
}
@@ -131,7 +131,7 @@ void LocalFileSyncService::Shutdown() {
void LocalFileSyncService::MaybeInitializeFileSystemContext(
const GURL& app_origin,
- fileapi::FileSystemContext* file_system_context,
+ storage::FileSystemContext* file_system_context,
const SyncStatusCallback& callback) {
sync_context_->MaybeInitializeFileSystemContext(
app_origin, file_system_context,
@@ -247,9 +247,9 @@ void LocalFileSyncService::PrepareForProcessRemoteChange(
GURL site_url =
extensions::util::GetSiteForExtensionId(extension->id(), profile_);
DCHECK(!site_url.is_empty());
- scoped_refptr<fileapi::FileSystemContext> file_system_context =
- content::BrowserContext::GetStoragePartitionForSite(
- profile_, site_url)->GetFileSystemContext();
+ scoped_refptr<storage::FileSystemContext> file_system_context =
+ content::BrowserContext::GetStoragePartitionForSite(profile_, site_url)
+ ->GetFileSystemContext();
MaybeInitializeFileSystemContext(
url.origin(),
file_system_context.get(),
@@ -357,7 +357,7 @@ LocalFileSyncService::LocalFileSyncService(Profile* profile,
void LocalFileSyncService::DidInitializeFileSystemContext(
const GURL& app_origin,
- fileapi::FileSystemContext* file_system_context,
+ storage::FileSystemContext* file_system_context,
const SyncStatusCallback& callback,
SyncStatusCode status) {
if (status != SYNC_STATUS_OK) {
@@ -386,7 +386,7 @@ void LocalFileSyncService::DidInitializeFileSystemContext(
void LocalFileSyncService::DidInitializeForRemoteSync(
const FileSystemURL& url,
- fileapi::FileSystemContext* file_system_context,
+ storage::FileSystemContext* file_system_context,
const PrepareChangeCallback& callback,
SyncStatusCode status) {
if (status != SYNC_STATUS_OK) {
@@ -423,7 +423,7 @@ void LocalFileSyncService::DidApplyRemoteChange(
void LocalFileSyncService::DidGetFileForLocalSync(
SyncStatusCode status,
const LocalFileSyncInfo& sync_file_info,
- webkit_blob::ScopedFile snapshot) {
+ storage::ScopedFile snapshot) {
DCHECK(!local_sync_callback_.is_null());
if (status != SYNC_STATUS_OK) {
RunLocalSyncCallback(status, sync_file_info.url);
@@ -452,7 +452,7 @@ void LocalFileSyncService::DidGetFileForLocalSync(
}
void LocalFileSyncService::ProcessNextChangeForURL(
- webkit_blob::ScopedFile snapshot,
+ storage::ScopedFile snapshot,
const LocalFileSyncInfo& sync_file_info,
const FileChange& processed_change,
const FileChangeList& changes,

Powered by Google App Engine
This is Rietveld 408576698