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

Unified Diff: storage/browser/fileapi/plugin_private_file_system_backend.h

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/plugin_private_file_system_backend.h
diff --git a/webkit/browser/fileapi/plugin_private_file_system_backend.h b/storage/browser/fileapi/plugin_private_file_system_backend.h
similarity index 81%
rename from webkit/browser/fileapi/plugin_private_file_system_backend.h
rename to storage/browser/fileapi/plugin_private_file_system_backend.h
index 35612b16747b9213bcfc1cad61d42d861ac9558a..a61b55735ac7a011e7975f05714d9ec5cd1aa938 100644
--- a/webkit/browser/fileapi/plugin_private_file_system_backend.h
+++ b/storage/browser/fileapi/plugin_private_file_system_backend.h
@@ -10,9 +10,9 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
-#include "webkit/browser/fileapi/file_system_backend.h"
-#include "webkit/browser/fileapi/file_system_options.h"
-#include "webkit/browser/fileapi/file_system_quota_util.h"
+#include "storage/browser/fileapi/file_system_backend.h"
+#include "storage/browser/fileapi/file_system_options.h"
+#include "storage/browser/fileapi/file_system_quota_util.h"
namespace base {
class SequencedTaskRunner;
@@ -26,11 +26,11 @@ namespace quota {
class SpecialStoragePolicy;
}
-namespace fileapi {
+namespace storage {
class ObfuscatedFileUtil;
-class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend
+class STORAGE_EXPORT PluginPrivateFileSystemBackend
: public FileSystemBackend,
public FileSystemQuotaUtil {
public:
@@ -50,13 +50,12 @@ class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend
// isolation, e.g. name, MIME type etc.
// NOTE: |plugin_id| must be sanitized ASCII string that doesn't
// include *any* dangerous character like '/'.
- void OpenPrivateFileSystem(
- const GURL& origin_url,
- FileSystemType type,
- const std::string& filesystem_id,
- const std::string& plugin_id,
- OpenFileSystemMode mode,
- const StatusCallback& callback);
+ void OpenPrivateFileSystem(const GURL& origin_url,
+ FileSystemType type,
+ const std::string& filesystem_id,
+ const std::string& plugin_id,
+ OpenFileSystemMode mode,
+ const StatusCallback& callback);
// FileSystemBackend overrides.
virtual bool CanHandleType(FileSystemType type) const OVERRIDE;
@@ -73,7 +72,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend
FileSystemContext* context,
base::File::Error* error_code) const OVERRIDE;
virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE;
- virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
+ virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
const FileSystemURL& url,
int64 offset,
const base::Time& expected_modification_time,
@@ -97,14 +96,12 @@ class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend
FileSystemType type,
const std::string& host,
std::set<GURL>* origins) OVERRIDE;
- virtual int64 GetOriginUsageOnFileTaskRunner(
- FileSystemContext* context,
- const GURL& origin_url,
- FileSystemType type) OVERRIDE;
+ virtual int64 GetOriginUsageOnFileTaskRunner(FileSystemContext* context,
+ const GURL& origin_url,
+ FileSystemType type) OVERRIDE;
virtual scoped_refptr<QuotaReservation>
- CreateQuotaReservationOnFileTaskRunner(
- const GURL& origin_url,
- FileSystemType type) OVERRIDE;
+ CreateQuotaReservationOnFileTaskRunner(const GURL& origin_url,
+ FileSystemType type) OVERRIDE;
virtual void AddFileUpdateObserver(
FileSystemType type,
FileUpdateObserver* observer,
@@ -140,6 +137,6 @@ class WEBKIT_STORAGE_BROWSER_EXPORT PluginPrivateFileSystemBackend
DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend);
};
-} // namespace fileapi
+} // namespace storage
#endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
« no previous file with comments | « storage/browser/fileapi/open_file_system_mode.h ('k') | storage/browser/fileapi/plugin_private_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698