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

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

Issue 579083004: FileSystem: Modify ObfucatedFileUtil to delete contents of the plugin private filesystem (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 6 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_OBFUSCATED_FILE_UTIL_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_
6 #define STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 6 #define STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const GURL& origin, 190 const GURL& origin,
191 const std::string& type_string); 191 const std::string& type_string);
192 192
193 // This method and all methods of its returned class must be called only on 193 // This method and all methods of its returned class must be called only on
194 // the FILE thread. The caller is responsible for deleting the returned 194 // the FILE thread. The caller is responsible for deleting the returned
195 // object. 195 // object.
196 AbstractOriginEnumerator* CreateOriginEnumerator(); 196 AbstractOriginEnumerator* CreateOriginEnumerator();
197 197
198 // Deletes a directory database from the database list in the ObfuscatedFSFU 198 // Deletes a directory database from the database list in the ObfuscatedFSFU
199 // and destroys the database on the disk. 199 // and destroys the database on the disk.
200 bool DestroyDirectoryDatabase(const GURL& origin, 200 void DestroyDirectoryDatabase(const GURL& origin,
201 const std::string& type_string); 201 const std::string& type_string);
202 202
203 // Computes a cost for storing a given file in the obfuscated FSFU. 203 // Computes a cost for storing a given file in the obfuscated FSFU.
204 // As the cost of a file is independent of the cost of its parent directories, 204 // As the cost of a file is independent of the cost of its parent directories,
205 // this ignores all but the BaseName of the supplied path. In order to 205 // this ignores all but the BaseName of the supplied path. In order to
206 // compute the cost of adding a multi-segment directory recursively, call this 206 // compute the cost of adding a multi-segment directory recursively, call this
207 // on each path segment and add the results. 207 // on each path segment and add the results.
208 static int64 ComputeFilePathCost(const base::FilePath& path); 208 static int64 ComputeFilePathCost(const base::FilePath& path);
209 209
210 // Tries to prepopulate directory database for the given type strings. 210 // Tries to prepopulate directory database for the given type strings.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 // Not owned. 341 // Not owned.
342 SandboxFileSystemBackendDelegate* sandbox_delegate_; 342 SandboxFileSystemBackendDelegate* sandbox_delegate_;
343 343
344 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); 344 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil);
345 }; 345 };
346 346
347 } // namespace storage 347 } // namespace storage
348 348
349 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 349 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698