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

Side by Side Diff: webkit/fileapi/sandbox_mount_point_provider.h

Issue 10449028: Revert 138444 - Always pass FileSystemContext to ObfuscatedFileUtil operations (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1151/src/
Patch Set: Created 8 years, 7 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_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Returns an empty path if the given type is invalid. 122 // Returns an empty path if the given type is invalid.
123 // This method can only be called on the file thread. 123 // This method can only be called on the file thread.
124 FilePath GetBaseDirectoryForOriginAndType( 124 FilePath GetBaseDirectoryForOriginAndType(
125 const GURL& origin_url, 125 const GURL& origin_url,
126 FileSystemType type, 126 FileSystemType type,
127 bool create) const; 127 bool create) const;
128 128
129 // Deletes the data on the origin and reports the amount of deleted data 129 // Deletes the data on the origin and reports the amount of deleted data
130 // to the quota manager via |proxy|. 130 // to the quota manager via |proxy|.
131 bool DeleteOriginDataOnFileThread( 131 bool DeleteOriginDataOnFileThread(
132 FileSystemContext* context,
133 quota::QuotaManagerProxy* proxy, 132 quota::QuotaManagerProxy* proxy,
134 const GURL& origin_url, 133 const GURL& origin_url,
135 FileSystemType type); 134 FileSystemType type);
136 135
137 // Quota util methods. 136 // Quota util methods.
138 virtual void GetOriginsForTypeOnFileThread( 137 virtual void GetOriginsForTypeOnFileThread(
139 FileSystemType type, 138 FileSystemType type,
140 std::set<GURL>* origins) OVERRIDE; 139 std::set<GURL>* origins) OVERRIDE;
141 virtual void GetOriginsForHostOnFileThread( 140 virtual void GetOriginsForHostOnFileThread(
142 FileSystemType type, 141 FileSystemType type,
143 const std::string& host, 142 const std::string& host,
144 std::set<GURL>* origins) OVERRIDE; 143 std::set<GURL>* origins) OVERRIDE;
145 virtual int64 GetOriginUsageOnFileThread( 144 virtual int64 GetOriginUsageOnFileThread(
146 FileSystemContext* context,
147 const GURL& origin_url, 145 const GURL& origin_url,
148 FileSystemType type) OVERRIDE; 146 FileSystemType type) OVERRIDE;
149 virtual void NotifyOriginWasAccessedOnIOThread( 147 virtual void NotifyOriginWasAccessedOnIOThread(
150 quota::QuotaManagerProxy* proxy, 148 quota::QuotaManagerProxy* proxy,
151 const GURL& origin_url, 149 const GURL& origin_url,
152 FileSystemType type) OVERRIDE; 150 FileSystemType type) OVERRIDE;
153 virtual void UpdateOriginUsageOnFileThread( 151 virtual void UpdateOriginUsageOnFileThread(
154 quota::QuotaManagerProxy* proxy, 152 quota::QuotaManagerProxy* proxy,
155 const GURL& origin_url, 153 const GURL& origin_url,
156 FileSystemType type, 154 FileSystemType type,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 base::Time next_release_time_for_open_filesystem_stat_; 195 base::Time next_release_time_for_open_filesystem_stat_;
198 196
199 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; 197 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_;
200 198
201 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); 199 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider);
202 }; 200 };
203 201
204 } // namespace fileapi 202 } // namespace fileapi
205 203
206 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 204 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_test_helper.cc ('k') | webkit/fileapi/sandbox_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698