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

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

Issue 137923003: Change fileapi namespace to content for files that are moved under content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 years, 11 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 | Annotate | Revision Log
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 WEBKIT_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_
6 #define WEBKIT_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 6 #define WEBKIT_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 11 matching lines...) Expand all
22 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" 22 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h"
23 #include "webkit/browser/webkit_storage_browser_export.h" 23 #include "webkit/browser/webkit_storage_browser_export.h"
24 #include "webkit/common/blob/shareable_file_reference.h" 24 #include "webkit/common/blob/shareable_file_reference.h"
25 #include "webkit/common/fileapi/file_system_types.h" 25 #include "webkit/common/fileapi/file_system_types.h"
26 26
27 namespace base { 27 namespace base {
28 class SequencedTaskRunner; 28 class SequencedTaskRunner;
29 class TimeTicks; 29 class TimeTicks;
30 } 30 }
31 31
32 namespace content {
33 class ObfuscatedFileUtilTest;
34 }
35
32 namespace quota { 36 namespace quota {
33 class SpecialStoragePolicy; 37 class SpecialStoragePolicy;
34 } 38 }
35 39
36 class GURL; 40 class GURL;
37 41
38 namespace fileapi { 42 namespace fileapi {
39 43
40 class FileSystemOperationContext; 44 class FileSystemOperationContext;
41 class SandboxOriginDatabaseInterface; 45 class SandboxOriginDatabaseInterface;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // once it succeeds to do so for one database (i.e. it prepopulates 226 // once it succeeds to do so for one database (i.e. it prepopulates
223 // at most one database). 227 // at most one database).
224 void MaybePrepopulateDatabase( 228 void MaybePrepopulateDatabase(
225 const std::vector<std::string>& type_strings_to_prepopulate); 229 const std::vector<std::string>& type_strings_to_prepopulate);
226 230
227 private: 231 private:
228 typedef SandboxDirectoryDatabase::FileId FileId; 232 typedef SandboxDirectoryDatabase::FileId FileId;
229 typedef SandboxDirectoryDatabase::FileInfo FileInfo; 233 typedef SandboxDirectoryDatabase::FileInfo FileInfo;
230 234
231 friend class ObfuscatedFileEnumerator; 235 friend class ObfuscatedFileEnumerator;
232 friend class ObfuscatedFileUtilTest;
233 friend class QuotaBackendImplTest; 236 friend class QuotaBackendImplTest;
234 FRIEND_TEST_ALL_PREFIXES(ObfuscatedFileUtilTest, MaybeDropDatabasesAliveCase); 237 friend class content::ObfuscatedFileUtilTest;
235 FRIEND_TEST_ALL_PREFIXES(ObfuscatedFileUtilTest,
236 MaybeDropDatabasesAlreadyDeletedCase);
237 FRIEND_TEST_ALL_PREFIXES(ObfuscatedFileUtilTest,
238 DestroyDirectoryDatabase_Isolated);
239 FRIEND_TEST_ALL_PREFIXES(ObfuscatedFileUtilTest,
240 GetDirectoryDatabase_Isolated);
241 FRIEND_TEST_ALL_PREFIXES(ObfuscatedFileUtilTest,
242 MigrationBackFromIsolated);
243 238
244 // Helper method to create an obfuscated file util for regular 239 // Helper method to create an obfuscated file util for regular
245 // (temporary, persistent) file systems. Used only for testing. 240 // (temporary, persistent) file systems. Used only for testing.
246 // Note: this is implemented in sandbox_file_system_backend_delegate.cc. 241 // Note: this is implemented in sandbox_file_system_backend_delegate.cc.
247 static ObfuscatedFileUtil* CreateForTesting( 242 static ObfuscatedFileUtil* CreateForTesting(
248 quota::SpecialStoragePolicy* special_storage_policy, 243 quota::SpecialStoragePolicy* special_storage_policy,
249 const base::FilePath& file_system_directory, 244 const base::FilePath& file_system_directory,
250 base::SequencedTaskRunner* file_task_runner); 245 base::SequencedTaskRunner* file_task_runner);
251 246
252 base::FilePath GetDirectoryForURL( 247 base::FilePath GetDirectoryForURL(
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 345
351 // Not owned. 346 // Not owned.
352 SandboxFileSystemBackendDelegate* sandbox_delegate_; 347 SandboxFileSystemBackendDelegate* sandbox_delegate_;
353 348
354 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); 349 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil);
355 }; 350 };
356 351
357 } // namespace fileapi 352 } // namespace fileapi
358 353
359 #endif // WEBKIT_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 354 #endif // WEBKIT_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_file_stream_reader.h ('k') | webkit/browser/fileapi/plugin_private_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698