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

Unified Diff: webkit/browser/fileapi/sandbox_isolated_origin_database.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: webkit/browser/fileapi/sandbox_isolated_origin_database.h
diff --git a/webkit/browser/fileapi/sandbox_isolated_origin_database.h b/webkit/browser/fileapi/sandbox_isolated_origin_database.h
index 2f7b7663a90bc1391451a2c603d70cf80ac28195..940abb10339934470efcd760027d58ec888efad1 100644
--- a/webkit/browser/fileapi/sandbox_isolated_origin_database.h
+++ b/webkit/browser/fileapi/sandbox_isolated_origin_database.h
@@ -1,61 +1,5 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_
-#define WEBKIT_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_
-
-#include <string>
-#include <vector>
-
-#include "webkit/browser/fileapi/sandbox_origin_database_interface.h"
-
-namespace storage {
-
-class SandboxOriginDatabase;
-
-// This origin database implementation supports only one origin
-// (therefore is expected to run very fast).
-class STORAGE_EXPORT_PRIVATE SandboxIsolatedOriginDatabase
- : public SandboxOriginDatabaseInterface {
- public:
- static const base::FilePath::CharType kObsoleteOriginDirectory[];
-
- // Initialize this database for |origin| which makes GetPathForOrigin return
- // |origin_directory| (in |file_system_directory|).
- SandboxIsolatedOriginDatabase(
- const std::string& origin,
- const base::FilePath& file_system_directory,
- const base::FilePath& origin_directory);
- virtual ~SandboxIsolatedOriginDatabase();
-
- // SandboxOriginDatabaseInterface overrides.
- virtual bool HasOriginPath(const std::string& origin) OVERRIDE;
- virtual bool GetPathForOrigin(const std::string& origin,
- base::FilePath* directory) OVERRIDE;
- virtual bool RemovePathForOrigin(const std::string& origin) OVERRIDE;
- virtual bool ListAllOrigins(std::vector<OriginRecord>* origins) OVERRIDE;
- virtual void DropDatabase() OVERRIDE;
-
- // TODO(kinuko): Deprecate this after a few release cycles, e.g. around M33.
- static void MigrateBackFromObsoleteOriginDatabase(
- const std::string& origin,
- const base::FilePath& file_system_directory,
- SandboxOriginDatabase* origin_database);
-
- const std::string& origin() const { return origin_; }
-
- private:
- void MigrateDatabaseIfNeeded();
-
- bool migration_checked_;
- const std::string origin_;
- const base::FilePath file_system_directory_;
- const base::FilePath origin_directory_;
-
- DISALLOW_COPY_AND_ASSIGN(SandboxIsolatedOriginDatabase);
-};
-
-} // namespace storage
-
-#endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_
+#include "storage/browser/fileapi/sandbox_isolated_origin_database.h"

Powered by Google App Engine
This is Rietveld 408576698