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

Unified Diff: chrome/browser/local_discovery/storage/privet_filesystem_operations.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/local_discovery/storage/privet_filesystem_operations.cc
diff --git a/chrome/browser/local_discovery/storage/privet_filesystem_operations.cc b/chrome/browser/local_discovery/storage/privet_filesystem_operations.cc
index 66f144779887bf78e617fe57a6ae79d104f88aea..14392187f26b568a2f977794781a626b3e49b43b 100644
--- a/chrome/browser/local_discovery/storage/privet_filesystem_operations.cc
+++ b/chrome/browser/local_discovery/storage/privet_filesystem_operations.cc
@@ -18,8 +18,8 @@ PrivetFileSystemOperationFactory::~PrivetFileSystemOperationFactory() {
}
void PrivetFileSystemOperationFactory::GetFileInfo(
- const fileapi::FileSystemURL& url,
- const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) {
+ const storage::FileSystemURL& url,
+ const storage::AsyncFileUtil::GetFileInfoCallback& callback) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
PrivetFileSystemAsyncOperation* operation =
new PrivetFileSystemDetailsOperation(
@@ -29,8 +29,8 @@ void PrivetFileSystemOperationFactory::GetFileInfo(
}
void PrivetFileSystemOperationFactory::ReadDirectory(
- const fileapi::FileSystemURL& url,
- const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) {
+ const storage::FileSystemURL& url,
+ const storage::AsyncFileUtil::ReadDirectoryCallback& callback) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
PrivetFileSystemAsyncOperation* operation = new PrivetFileSystemListOperation(
url.path(), browser_context_, this, &attribute_cache_, callback);
@@ -109,7 +109,7 @@ PrivetFileSystemListOperation::PrivetFileSystemListOperation(
content::BrowserContext* browser_context,
PrivetFileSystemAsyncOperationContainer* container,
PrivetFileSystemAttributeCache* attribute_cache,
- const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback)
+ const storage::AsyncFileUtil::ReadDirectoryCallback& callback)
: core_(full_path, browser_context, this),
full_path_(full_path),
container_(container),
@@ -155,7 +155,7 @@ void PrivetFileSystemListOperation::OnStorageListResult(
attribute_cache_->AddFileInfoFromJSON(full_path_, value);
- fileapi::AsyncFileUtil::EntryList entry_list;
+ storage::AsyncFileUtil::EntryList entry_list;
const base::ListValue* entries;
if (!value->GetList(kPrivetListEntries, &entries)) {
@@ -178,12 +178,12 @@ void PrivetFileSystemListOperation::OnStorageListResult(
entry_value->GetString(kPrivetListKeyType, &type);
entry_value->GetInteger(kPrivetListKeySize, &size);
- fileapi::DirectoryEntry entry(
- name,
- (type == kPrivetListTypeDir) ?
- fileapi::DirectoryEntry::DIRECTORY : fileapi::DirectoryEntry::FILE,
- size,
- base::Time() /* TODO(noamsml) */);
+ storage::DirectoryEntry entry(name,
+ (type == kPrivetListTypeDir)
+ ? storage::DirectoryEntry::DIRECTORY
+ : storage::DirectoryEntry::FILE,
+ size,
+ base::Time() /* TODO(noamsml) */);
entry_list.push_back(entry);
}
@@ -194,13 +194,13 @@ void PrivetFileSystemListOperation::OnStorageListResult(
void PrivetFileSystemListOperation::SignalError() {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
TriggerCallbackAndDestroy(base::File::FILE_ERROR_FAILED,
- fileapi::AsyncFileUtil::EntryList(),
+ storage::AsyncFileUtil::EntryList(),
false);
}
void PrivetFileSystemListOperation::TriggerCallbackAndDestroy(
base::File::Error result,
- const fileapi::AsyncFileUtil::EntryList& file_list,
+ const storage::AsyncFileUtil::EntryList& file_list,
bool has_more) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
content::BrowserThread::PostTask(
@@ -215,7 +215,7 @@ PrivetFileSystemDetailsOperation::PrivetFileSystemDetailsOperation(
content::BrowserContext* browser_context,
PrivetFileSystemAsyncOperationContainer* container,
PrivetFileSystemAttributeCache* attribute_cache,
- const fileapi::AsyncFileUtil::GetFileInfoCallback& callback)
+ const storage::AsyncFileUtil::GetFileInfoCallback& callback)
: core_(full_path, browser_context, this),
full_path_(full_path),
container_(container),

Powered by Google App Engine
This is Rietveld 408576698