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

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

Issue 10541113: Notify CloseFile from Pepper to FileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added renderer-close check. Created 8 years, 5 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_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void Truncate(const GURL& path_url, int64 length, 81 virtual void Truncate(const GURL& path_url, int64 length,
82 const StatusCallback& callback) OVERRIDE; 82 const StatusCallback& callback) OVERRIDE;
83 virtual void TouchFile(const GURL& path_url, 83 virtual void TouchFile(const GURL& path_url,
84 const base::Time& last_access_time, 84 const base::Time& last_access_time,
85 const base::Time& last_modified_time, 85 const base::Time& last_modified_time,
86 const StatusCallback& callback) OVERRIDE; 86 const StatusCallback& callback) OVERRIDE;
87 virtual void OpenFile(const GURL& path_url, 87 virtual void OpenFile(const GURL& path_url,
88 int file_flags, 88 int file_flags,
89 base::ProcessHandle peer_handle, 89 base::ProcessHandle peer_handle,
90 const OpenFileCallback& callback) OVERRIDE; 90 const OpenFileCallback& callback) OVERRIDE;
91 virtual void NotifyCloseFile(const GURL& path) OVERRIDE;
91 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE; 92 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE;
92 virtual FileSystemOperation* AsFileSystemOperation() OVERRIDE; 93 virtual FileSystemOperation* AsFileSystemOperation() OVERRIDE;
93 virtual void CreateSnapshotFile( 94 virtual void CreateSnapshotFile(
94 const GURL& path, 95 const GURL& path,
95 const SnapshotFileCallback& callback) OVERRIDE; 96 const SnapshotFileCallback& callback) OVERRIDE;
96 97
97 // Synchronously gets the platform path for the given |path_url|. 98 // Synchronously gets the platform path for the given |path_url|.
98 void SyncGetPlatformPath(const GURL& path_url, FilePath* platform_path); 99 void SyncGetPlatformPath(const GURL& path_url, FilePath* platform_path);
99 100
100 private: 101 private:
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // FileSystemOperation instance is usually deleted upon completion but 268 // FileSystemOperation instance is usually deleted upon completion but
268 // could be deleted while it has inflight callbacks when Cancel is called. 269 // could be deleted while it has inflight callbacks when Cancel is called.
269 base::WeakPtrFactory<FileSystemOperation> weak_factory_; 270 base::WeakPtrFactory<FileSystemOperation> weak_factory_;
270 271
271 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); 272 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation);
272 }; 273 };
273 274
274 } // namespace fileapi 275 } // namespace fileapi
275 276
276 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 277 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698