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

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

Issue 631823003: replace OVERRIDE and FINAL with override and final in storage/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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_ISOLATED_ORIGIN_DATABASE_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_
6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_ 6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 // Initialize this database for |origin| which makes GetPathForOrigin return 24 // Initialize this database for |origin| which makes GetPathForOrigin return
25 // |origin_directory| (in |file_system_directory|). 25 // |origin_directory| (in |file_system_directory|).
26 SandboxIsolatedOriginDatabase( 26 SandboxIsolatedOriginDatabase(
27 const std::string& origin, 27 const std::string& origin,
28 const base::FilePath& file_system_directory, 28 const base::FilePath& file_system_directory,
29 const base::FilePath& origin_directory); 29 const base::FilePath& origin_directory);
30 virtual ~SandboxIsolatedOriginDatabase(); 30 virtual ~SandboxIsolatedOriginDatabase();
31 31
32 // SandboxOriginDatabaseInterface overrides. 32 // SandboxOriginDatabaseInterface overrides.
33 virtual bool HasOriginPath(const std::string& origin) OVERRIDE; 33 virtual bool HasOriginPath(const std::string& origin) override;
34 virtual bool GetPathForOrigin(const std::string& origin, 34 virtual bool GetPathForOrigin(const std::string& origin,
35 base::FilePath* directory) OVERRIDE; 35 base::FilePath* directory) override;
36 virtual bool RemovePathForOrigin(const std::string& origin) OVERRIDE; 36 virtual bool RemovePathForOrigin(const std::string& origin) override;
37 virtual bool ListAllOrigins(std::vector<OriginRecord>* origins) OVERRIDE; 37 virtual bool ListAllOrigins(std::vector<OriginRecord>* origins) override;
38 virtual void DropDatabase() OVERRIDE; 38 virtual void DropDatabase() override;
39 39
40 // TODO(kinuko): Deprecate this after a few release cycles, e.g. around M33. 40 // TODO(kinuko): Deprecate this after a few release cycles, e.g. around M33.
41 static void MigrateBackFromObsoleteOriginDatabase( 41 static void MigrateBackFromObsoleteOriginDatabase(
42 const std::string& origin, 42 const std::string& origin,
43 const base::FilePath& file_system_directory, 43 const base::FilePath& file_system_directory,
44 SandboxOriginDatabase* origin_database); 44 SandboxOriginDatabase* origin_database);
45 45
46 const std::string& origin() const { return origin_; } 46 const std::string& origin() const { return origin_; }
47 47
48 private: 48 private:
49 void MigrateDatabaseIfNeeded(); 49 void MigrateDatabaseIfNeeded();
50 50
51 bool migration_checked_; 51 bool migration_checked_;
52 const std::string origin_; 52 const std::string origin_;
53 const base::FilePath file_system_directory_; 53 const base::FilePath file_system_directory_;
54 const base::FilePath origin_directory_; 54 const base::FilePath origin_directory_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(SandboxIsolatedOriginDatabase); 56 DISALLOW_COPY_AND_ASSIGN(SandboxIsolatedOriginDatabase);
57 }; 57 };
58 58
59 } // namespace storage 59 } // namespace storage
60 60
61 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_ 61 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_ISOLATED_ORIGIN_DATABASE_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/sandbox_file_system_backend_delegate.cc ('k') | storage/browser/fileapi/sandbox_origin_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698