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

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

Issue 498273002: Rename storage-related export macros and build targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 (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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/files/file.h" 14 #include "base/files/file.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/files/file_util_proxy.h" 16 #include "base/files/file_util_proxy.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "webkit/browser/fileapi/file_system_file_util.h" 19 #include "webkit/browser/fileapi/file_system_file_util.h"
20 #include "webkit/browser/fileapi/file_system_url.h" 20 #include "webkit/browser/fileapi/file_system_url.h"
21 #include "webkit/browser/fileapi/sandbox_directory_database.h" 21 #include "webkit/browser/fileapi/sandbox_directory_database.h"
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/storage_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 { 32 namespace content {
33 class ObfuscatedFileUtilTest; 33 class ObfuscatedFileUtilTest;
(...skipping 28 matching lines...) Expand all
62 // regular sandbox filesystems. 62 // regular sandbox filesystems.
63 // 63 //
64 // The overall implementation philosophy of this class is that partial failures 64 // The overall implementation philosophy of this class is that partial failures
65 // should leave us with an intact database; we'd prefer to leak the occasional 65 // should leave us with an intact database; we'd prefer to leak the occasional
66 // backing file than have a database entry whose backing file is missing. When 66 // backing file than have a database entry whose backing file is missing. When
67 // doing FSCK operations, if you find a loose backing file with no reference, 67 // doing FSCK operations, if you find a loose backing file with no reference,
68 // you may safely delete it. 68 // you may safely delete it.
69 // 69 //
70 // This class must be deleted on the FILE thread, because that's where 70 // This class must be deleted on the FILE thread, because that's where
71 // DropDatabases needs to be called. 71 // DropDatabases needs to be called.
72 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE ObfuscatedFileUtil 72 class STORAGE_EXPORT_PRIVATE ObfuscatedFileUtil
73 : public FileSystemFileUtil { 73 : public FileSystemFileUtil {
74 public: 74 public:
75 // Origin enumerator interface. 75 // Origin enumerator interface.
76 // An instance of this interface is assumed to be called on the file thread. 76 // An instance of this interface is assumed to be called on the file thread.
77 class AbstractOriginEnumerator { 77 class AbstractOriginEnumerator {
78 public: 78 public:
79 virtual ~AbstractOriginEnumerator() {} 79 virtual ~AbstractOriginEnumerator() {}
80 80
81 // Returns the next origin. Returns empty if there are no more origins. 81 // Returns the next origin. Returns empty if there are no more origins.
82 virtual GURL Next() = 0; 82 virtual GURL Next() = 0;
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 // Not owned. 351 // Not owned.
352 SandboxFileSystemBackendDelegate* sandbox_delegate_; 352 SandboxFileSystemBackendDelegate* sandbox_delegate_;
353 353
354 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); 354 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil);
355 }; 355 };
356 356
357 } // namespace storage 357 } // namespace storage
358 358
359 #endif // WEBKIT_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 359 #endif // WEBKIT_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/native_file_util.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