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

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

Issue 671873004: Migrates legacy packaged app data when it's upgraded to a platform app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool create, 183 bool create,
184 base::File::Error* error_code); 184 base::File::Error* error_code);
185 185
186 // Deletes the topmost directory specific to this origin and type. This will 186 // Deletes the topmost directory specific to this origin and type. This will
187 // delete its directory database. 187 // delete its directory database.
188 // Deletes the topmost origin directory if |type_string| is empty. 188 // Deletes the topmost origin directory if |type_string| is empty.
189 bool DeleteDirectoryForOriginAndType( 189 bool DeleteDirectoryForOriginAndType(
190 const GURL& origin, 190 const GURL& origin,
191 const std::string& type_string); 191 const std::string& type_string);
192 192
193 // Frees resources used by an origin's filesystem.
194 void CloseFileSystemForOriginAndType(const GURL& origin,
195 const std::string& type_string);
196
193 // This method and all methods of its returned class must be called only on 197 // 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 198 // the FILE thread. The caller is responsible for deleting the returned
195 // object. 199 // object.
196 AbstractOriginEnumerator* CreateOriginEnumerator(); 200 AbstractOriginEnumerator* CreateOriginEnumerator();
197 201
198 // Deletes a directory database from the database list in the ObfuscatedFSFU 202 // Deletes a directory database from the database list in the ObfuscatedFSFU
199 // and destroys the database on the disk. 203 // and destroys the database on the disk.
200 void DestroyDirectoryDatabase(const GURL& origin, 204 void DestroyDirectoryDatabase(const GURL& origin,
201 const std::string& type_string); 205 const std::string& type_string);
202 206
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 344
341 // Not owned. 345 // Not owned.
342 SandboxFileSystemBackendDelegate* sandbox_delegate_; 346 SandboxFileSystemBackendDelegate* sandbox_delegate_;
343 347
344 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); 348 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil);
345 }; 349 };
346 350
347 } // namespace storage 351 } // namespace storage
348 352
349 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 353 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698