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

Side by Side Diff: storage/browser/fileapi/sandbox_prioritized_origin_database.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_
6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "webkit/browser/fileapi/sandbox_origin_database_interface.h" 12 #include "storage/browser/fileapi/sandbox_origin_database_interface.h"
13 13
14 namespace leveldb { 14 namespace leveldb {
15 class Env; 15 class Env;
16 } 16 }
17 17
18 namespace fileapi { 18 namespace storage {
19 19
20 class ObfuscatedFileUtil; 20 class ObfuscatedFileUtil;
21 class SandboxIsolatedOriginDatabase; 21 class SandboxIsolatedOriginDatabase;
22 class SandboxOriginDatabase; 22 class SandboxOriginDatabase;
23 23
24 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE SandboxPrioritizedOriginDatabase 24 class STORAGE_EXPORT_PRIVATE SandboxPrioritizedOriginDatabase
25 : public SandboxOriginDatabaseInterface { 25 : public SandboxOriginDatabaseInterface {
26 public: 26 public:
27 SandboxPrioritizedOriginDatabase(const base::FilePath& file_system_directory, 27 SandboxPrioritizedOriginDatabase(const base::FilePath& file_system_directory,
28 leveldb::Env* env_override); 28 leveldb::Env* env_override);
29 virtual ~SandboxPrioritizedOriginDatabase(); 29 virtual ~SandboxPrioritizedOriginDatabase();
30 30
31 // Sets |origin| as primary origin in this database (e.g. may 31 // Sets |origin| as primary origin in this database (e.g. may
32 // allow faster access). 32 // allow faster access).
33 // Returns false if this database already has a primary origin 33 // Returns false if this database already has a primary origin
34 // which is different from |origin|. 34 // which is different from |origin|.
(...skipping 25 matching lines...) Expand all
60 60
61 const base::FilePath file_system_directory_; 61 const base::FilePath file_system_directory_;
62 leveldb::Env* env_override_; 62 leveldb::Env* env_override_;
63 const base::FilePath primary_origin_file_; 63 const base::FilePath primary_origin_file_;
64 scoped_ptr<SandboxOriginDatabase> origin_database_; 64 scoped_ptr<SandboxOriginDatabase> origin_database_;
65 scoped_ptr<SandboxIsolatedOriginDatabase> primary_origin_database_; 65 scoped_ptr<SandboxIsolatedOriginDatabase> primary_origin_database_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(SandboxPrioritizedOriginDatabase); 67 DISALLOW_COPY_AND_ASSIGN(SandboxPrioritizedOriginDatabase);
68 }; 68 };
69 69
70 } // namespace fileapi 70 } // namespace storage
71 71
72 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ 72 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698