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

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

Issue 624063003: Replacing the OVERRIDE with override and FINAL with final in storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the error Created 6 years, 2 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
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_ORIGIN_DATABASE_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_H_
6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_H_ 6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 class STORAGE_EXPORT_PRIVATE SandboxOriginDatabase 29 class STORAGE_EXPORT_PRIVATE SandboxOriginDatabase
30 : public SandboxOriginDatabaseInterface { 30 : public SandboxOriginDatabaseInterface {
31 public: 31 public:
32 // Only one instance of SandboxOriginDatabase should exist for a given path 32 // Only one instance of SandboxOriginDatabase should exist for a given path
33 // at a given time. 33 // at a given time.
34 SandboxOriginDatabase(const base::FilePath& file_system_directory, 34 SandboxOriginDatabase(const base::FilePath& file_system_directory,
35 leveldb::Env* env_override); 35 leveldb::Env* env_override);
36 virtual ~SandboxOriginDatabase(); 36 virtual ~SandboxOriginDatabase();
37 37
38 // SandboxOriginDatabaseInterface overrides. 38 // SandboxOriginDatabaseInterface overrides.
39 virtual bool HasOriginPath(const std::string& origin) OVERRIDE; 39 virtual bool HasOriginPath(const std::string& origin) override;
40 virtual bool GetPathForOrigin(const std::string& origin, 40 virtual bool GetPathForOrigin(const std::string& origin,
41 base::FilePath* directory) OVERRIDE; 41 base::FilePath* directory) override;
42 virtual bool RemovePathForOrigin(const std::string& origin) OVERRIDE; 42 virtual bool RemovePathForOrigin(const std::string& origin) override;
43 virtual bool ListAllOrigins(std::vector<OriginRecord>* origins) OVERRIDE; 43 virtual bool ListAllOrigins(std::vector<OriginRecord>* origins) override;
44 virtual void DropDatabase() OVERRIDE; 44 virtual void DropDatabase() override;
45 45
46 base::FilePath GetDatabasePath() const; 46 base::FilePath GetDatabasePath() const;
47 void RemoveDatabase(); 47 void RemoveDatabase();
48 48
49 private: 49 private:
50 enum RecoveryOption { 50 enum RecoveryOption {
51 REPAIR_ON_CORRUPTION, 51 REPAIR_ON_CORRUPTION,
52 DELETE_ON_CORRUPTION, 52 DELETE_ON_CORRUPTION,
53 FAIL_ON_CORRUPTION, 53 FAIL_ON_CORRUPTION,
54 }; 54 };
(...skipping 13 matching lines...) Expand all
68 base::FilePath file_system_directory_; 68 base::FilePath file_system_directory_;
69 leveldb::Env* env_override_; 69 leveldb::Env* env_override_;
70 scoped_ptr<leveldb::DB> db_; 70 scoped_ptr<leveldb::DB> db_;
71 base::Time last_reported_time_; 71 base::Time last_reported_time_;
72 DISALLOW_COPY_AND_ASSIGN(SandboxOriginDatabase); 72 DISALLOW_COPY_AND_ASSIGN(SandboxOriginDatabase);
73 }; 73 };
74 74
75 } // namespace storage 75 } // namespace storage
76 76
77 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_H_ 77 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_ORIGIN_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698