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 WEBKIT_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_INTERFACE_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_INTERFACE_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_INTERFACE_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_INTERFACE_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 "webkit/browser/webkit_storage_browser_export.h" | 12 #include "storage/common/storage_export.h" |
13 | 13 |
14 namespace fileapi { | 14 namespace storage { |
15 | 15 |
16 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE SandboxOriginDatabaseInterface { | 16 class STORAGE_EXPORT_PRIVATE SandboxOriginDatabaseInterface { |
17 public: | 17 public: |
18 struct WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE OriginRecord { | 18 struct STORAGE_EXPORT_PRIVATE OriginRecord { |
19 std::string origin; | 19 std::string origin; |
20 base::FilePath path; | 20 base::FilePath path; |
21 | 21 |
22 OriginRecord(); | 22 OriginRecord(); |
23 OriginRecord(const std::string& origin, const base::FilePath& path); | 23 OriginRecord(const std::string& origin, const base::FilePath& path); |
24 ~OriginRecord(); | 24 ~OriginRecord(); |
25 }; | 25 }; |
26 | 26 |
27 virtual ~SandboxOriginDatabaseInterface() {} | 27 virtual ~SandboxOriginDatabaseInterface() {} |
28 | 28 |
(...skipping 14 matching lines...) Expand all Loading... |
43 // Lists all origins in this database. | 43 // Lists all origins in this database. |
44 virtual bool ListAllOrigins(std::vector<OriginRecord>* origins) = 0; | 44 virtual bool ListAllOrigins(std::vector<OriginRecord>* origins) = 0; |
45 | 45 |
46 // This will release all database resources in use; call it to save memory. | 46 // This will release all database resources in use; call it to save memory. |
47 virtual void DropDatabase() = 0; | 47 virtual void DropDatabase() = 0; |
48 | 48 |
49 protected: | 49 protected: |
50 SandboxOriginDatabaseInterface() {} | 50 SandboxOriginDatabaseInterface() {} |
51 }; | 51 }; |
52 | 52 |
53 } // namespace fileapi | 53 } // namespace storage |
54 | 54 |
55 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_INTERFACE_H_ | 55 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_INTERFACE_H_ |
OLD | NEW |