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

Side by Side Diff: storage/browser/fileapi/sandbox_origin_database_interface.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_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
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_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/sandbox_origin_database.cc ('k') | storage/browser/fileapi/sandbox_origin_database_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698