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

Side by Side Diff: storage/browser/fileapi/sandbox_directory_database.h

Issue 1429333002: Deprecate STORAGE_EXPORT_PRIVATE macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase error Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DIRECTORY_DATABASE_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_SANDBOX_DIRECTORY_DATABASE_H_
6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_DIRECTORY_DATABASE_H_ 6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_DIRECTORY_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 // This class WILL NOT protect you against producing directory loops, giving an 34 // This class WILL NOT protect you against producing directory loops, giving an
35 // empty directory a backing data file, giving two files the same backing file, 35 // empty directory a backing data file, giving two files the same backing file,
36 // or pointing to a nonexistent backing file. It does no file IO other than 36 // or pointing to a nonexistent backing file. It does no file IO other than
37 // that involved with talking to its underlying database. It does not create or 37 // that involved with talking to its underlying database. It does not create or
38 // in any way touch real files; it only creates path entries in its database. 38 // in any way touch real files; it only creates path entries in its database.
39 39
40 // TODO(ericu): Safe mode, which does more checks such as the above on debug 40 // TODO(ericu): Safe mode, which does more checks such as the above on debug
41 // builds. 41 // builds.
42 // TODO(ericu): Add a method that will give a unique filename for a data file. 42 // TODO(ericu): Add a method that will give a unique filename for a data file.
43 class STORAGE_EXPORT_PRIVATE SandboxDirectoryDatabase { 43 class STORAGE_EXPORT SandboxDirectoryDatabase {
44 public: 44 public:
45 typedef int64 FileId; 45 typedef int64 FileId;
46 46
47 struct STORAGE_EXPORT_PRIVATE FileInfo { 47 struct STORAGE_EXPORT FileInfo {
48 FileInfo(); 48 FileInfo();
49 ~FileInfo(); 49 ~FileInfo();
50 50
51 bool is_directory() const { 51 bool is_directory() const {
52 return data_path.empty(); 52 return data_path.empty();
53 } 53 }
54 54
55 FileId parent_id; 55 FileId parent_id;
56 base::FilePath data_path; 56 base::FilePath data_path;
57 base::FilePath::StringType name; 57 base::FilePath::StringType name;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const base::FilePath filesystem_data_directory_; 126 const base::FilePath filesystem_data_directory_;
127 leveldb::Env* env_override_; 127 leveldb::Env* env_override_;
128 scoped_ptr<leveldb::DB> db_; 128 scoped_ptr<leveldb::DB> db_;
129 base::Time last_reported_time_; 129 base::Time last_reported_time_;
130 DISALLOW_COPY_AND_ASSIGN(SandboxDirectoryDatabase); 130 DISALLOW_COPY_AND_ASSIGN(SandboxDirectoryDatabase);
131 }; 131 };
132 132
133 } // namespace storage 133 } // namespace storage
134 134
135 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_DIRECTORY_DATABASE_H_ 135 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_DIRECTORY_DATABASE_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/obfuscated_file_util.h ('k') | storage/browser/fileapi/sandbox_file_stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698