OLD | NEW |
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 STORAGE_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ |
6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ | 6 #define STORAGE_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/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "storage/browser/fileapi/sandbox_origin_database_interface.h" | 13 #include "storage/browser/fileapi/sandbox_origin_database_interface.h" |
14 | 14 |
15 namespace leveldb { | 15 namespace leveldb { |
16 class Env; | 16 class Env; |
17 } | 17 } |
18 | 18 |
19 namespace storage { | 19 namespace storage { |
20 | 20 |
21 class ObfuscatedFileUtil; | 21 class ObfuscatedFileUtil; |
22 class SandboxIsolatedOriginDatabase; | 22 class SandboxIsolatedOriginDatabase; |
23 class SandboxOriginDatabase; | 23 class SandboxOriginDatabase; |
24 | 24 |
25 class STORAGE_EXPORT_PRIVATE SandboxPrioritizedOriginDatabase | 25 class STORAGE_EXPORT SandboxPrioritizedOriginDatabase |
26 : public SandboxOriginDatabaseInterface { | 26 : public SandboxOriginDatabaseInterface { |
27 public: | 27 public: |
28 static const base::FilePath::CharType* kPrimaryDirectory; | 28 static const base::FilePath::CharType* kPrimaryDirectory; |
29 static const base::FilePath::CharType* kPrimaryOriginFile; | 29 static const base::FilePath::CharType* kPrimaryOriginFile; |
30 | 30 |
31 SandboxPrioritizedOriginDatabase(const base::FilePath& file_system_directory, | 31 SandboxPrioritizedOriginDatabase(const base::FilePath& file_system_directory, |
32 leveldb::Env* env_override); | 32 leveldb::Env* env_override); |
33 ~SandboxPrioritizedOriginDatabase() override; | 33 ~SandboxPrioritizedOriginDatabase() override; |
34 | 34 |
35 // Sets |origin| as primary origin in this database (e.g. may | 35 // Sets |origin| as primary origin in this database (e.g. may |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 const base::FilePath primary_origin_file_; | 67 const base::FilePath primary_origin_file_; |
68 scoped_ptr<SandboxOriginDatabase> origin_database_; | 68 scoped_ptr<SandboxOriginDatabase> origin_database_; |
69 scoped_ptr<SandboxIsolatedOriginDatabase> primary_origin_database_; | 69 scoped_ptr<SandboxIsolatedOriginDatabase> primary_origin_database_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(SandboxPrioritizedOriginDatabase); | 71 DISALLOW_COPY_AND_ASSIGN(SandboxPrioritizedOriginDatabase); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace storage | 74 } // namespace storage |
75 | 75 |
76 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ | 76 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_PRIORITIZED_ORIGIN_DATABASE_H_ |
OLD | NEW |