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

Side by Side Diff: storage/browser/fileapi/plugin_private_file_system_backend.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 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_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
6 #define STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 6 #define STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // include *any* dangerous character like '/'. 54 // include *any* dangerous character like '/'.
55 void OpenPrivateFileSystem( 55 void OpenPrivateFileSystem(
56 const GURL& origin_url, 56 const GURL& origin_url,
57 FileSystemType type, 57 FileSystemType type,
58 const std::string& filesystem_id, 58 const std::string& filesystem_id,
59 const std::string& plugin_id, 59 const std::string& plugin_id,
60 OpenFileSystemMode mode, 60 OpenFileSystemMode mode,
61 const StatusCallback& callback); 61 const StatusCallback& callback);
62 62
63 // FileSystemBackend overrides. 63 // FileSystemBackend overrides.
64 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; 64 virtual bool CanHandleType(FileSystemType type) const override;
65 virtual void Initialize(FileSystemContext* context) OVERRIDE; 65 virtual void Initialize(FileSystemContext* context) override;
66 virtual void ResolveURL(const FileSystemURL& url, 66 virtual void ResolveURL(const FileSystemURL& url,
67 OpenFileSystemMode mode, 67 OpenFileSystemMode mode,
68 const OpenFileSystemCallback& callback) OVERRIDE; 68 const OpenFileSystemCallback& callback) override;
69 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; 69 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) override;
70 virtual WatcherManager* GetWatcherManager(FileSystemType type) OVERRIDE; 70 virtual WatcherManager* GetWatcherManager(FileSystemType type) override;
71 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( 71 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
72 FileSystemType type, 72 FileSystemType type,
73 base::File::Error* error_code) OVERRIDE; 73 base::File::Error* error_code) override;
74 virtual FileSystemOperation* CreateFileSystemOperation( 74 virtual FileSystemOperation* CreateFileSystemOperation(
75 const FileSystemURL& url, 75 const FileSystemURL& url,
76 FileSystemContext* context, 76 FileSystemContext* context,
77 base::File::Error* error_code) const OVERRIDE; 77 base::File::Error* error_code) const override;
78 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE; 78 virtual bool SupportsStreaming(const FileSystemURL& url) const override;
79 virtual bool HasInplaceCopyImplementation( 79 virtual bool HasInplaceCopyImplementation(
80 storage::FileSystemType type) const OVERRIDE; 80 storage::FileSystemType type) const override;
81 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 81 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
82 const FileSystemURL& url, 82 const FileSystemURL& url,
83 int64 offset, 83 int64 offset,
84 int64 max_bytes_to_read, 84 int64 max_bytes_to_read,
85 const base::Time& expected_modification_time, 85 const base::Time& expected_modification_time,
86 FileSystemContext* context) const OVERRIDE; 86 FileSystemContext* context) const override;
87 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( 87 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
88 const FileSystemURL& url, 88 const FileSystemURL& url,
89 int64 offset, 89 int64 offset,
90 FileSystemContext* context) const OVERRIDE; 90 FileSystemContext* context) const override;
91 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 91 virtual FileSystemQuotaUtil* GetQuotaUtil() override;
92 virtual const UpdateObserverList* GetUpdateObservers( 92 virtual const UpdateObserverList* GetUpdateObservers(
93 FileSystemType type) const OVERRIDE; 93 FileSystemType type) const override;
94 virtual const ChangeObserverList* GetChangeObservers( 94 virtual const ChangeObserverList* GetChangeObservers(
95 FileSystemType type) const OVERRIDE; 95 FileSystemType type) const override;
96 virtual const AccessObserverList* GetAccessObservers( 96 virtual const AccessObserverList* GetAccessObservers(
97 FileSystemType type) const OVERRIDE; 97 FileSystemType type) const override;
98 98
99 // FileSystemQuotaUtil overrides. 99 // FileSystemQuotaUtil overrides.
100 virtual base::File::Error DeleteOriginDataOnFileTaskRunner( 100 virtual base::File::Error DeleteOriginDataOnFileTaskRunner(
101 FileSystemContext* context, 101 FileSystemContext* context,
102 storage::QuotaManagerProxy* proxy, 102 storage::QuotaManagerProxy* proxy,
103 const GURL& origin_url, 103 const GURL& origin_url,
104 FileSystemType type) OVERRIDE; 104 FileSystemType type) override;
105 virtual void GetOriginsForTypeOnFileTaskRunner( 105 virtual void GetOriginsForTypeOnFileTaskRunner(
106 FileSystemType type, 106 FileSystemType type,
107 std::set<GURL>* origins) OVERRIDE; 107 std::set<GURL>* origins) override;
108 virtual void GetOriginsForHostOnFileTaskRunner( 108 virtual void GetOriginsForHostOnFileTaskRunner(
109 FileSystemType type, 109 FileSystemType type,
110 const std::string& host, 110 const std::string& host,
111 std::set<GURL>* origins) OVERRIDE; 111 std::set<GURL>* origins) override;
112 virtual int64 GetOriginUsageOnFileTaskRunner( 112 virtual int64 GetOriginUsageOnFileTaskRunner(
113 FileSystemContext* context, 113 FileSystemContext* context,
114 const GURL& origin_url, 114 const GURL& origin_url,
115 FileSystemType type) OVERRIDE; 115 FileSystemType type) override;
116 virtual scoped_refptr<QuotaReservation> 116 virtual scoped_refptr<QuotaReservation>
117 CreateQuotaReservationOnFileTaskRunner( 117 CreateQuotaReservationOnFileTaskRunner(
118 const GURL& origin_url, 118 const GURL& origin_url,
119 FileSystemType type) OVERRIDE; 119 FileSystemType type) override;
120 120
121 private: 121 private:
122 friend class content::PluginPrivateFileSystemBackendTest; 122 friend class content::PluginPrivateFileSystemBackendTest;
123 123
124 ObfuscatedFileUtil* obfuscated_file_util(); 124 ObfuscatedFileUtil* obfuscated_file_util();
125 const base::FilePath& base_path() const { return base_path_; } 125 const base::FilePath& base_path() const { return base_path_; }
126 126
127 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 127 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
128 const FileSystemOptions file_system_options_; 128 const FileSystemOptions file_system_options_;
129 const base::FilePath base_path_; 129 const base::FilePath base_path_;
130 scoped_ptr<AsyncFileUtil> file_util_; 130 scoped_ptr<AsyncFileUtil> file_util_;
131 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. 131 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_.
132 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; 132 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); 134 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend);
135 }; 135 };
136 136
137 } // namespace storage 137 } // namespace storage
138 138
139 #endif // STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 139 #endif // STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/obfuscated_file_util.cc ('k') | storage/browser/fileapi/quota/quota_backend_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698