|
Change some snapshot- or temporary-file related changes to use ScopedFile
- Remove FileSnapshotPolicy, and change
FileSystemFileUtil::CreateSnapshotFile() to return webkit_blob::ScopedFile
(if implementors want the backend to control the snapshot file's lifetime).
This allows implementors to set arbitrary callbacks and
also reduces the possibility of snapshot file leakage.
- Change DriveFileSyncService's temporary file handling to use
webkit_blob::ScopedFile to simplify the codebase & reduce the
possibility of temporary file leakage.
BUG= 162598
TEST=existing tests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196640
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+89 lines, -113 lines) |
Patch |
 |
M |
chrome/browser/media_galleries/fileapi/device_media_async_file_util.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc
|
View
|
1
2
3
|
5 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync_file_system/drive_file_sync_service.cc
|
View
|
1
2
3
|
7 chunks |
+18 lines, -26 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/async_file_util.h
|
View
|
1
2
3
4
|
3 chunks |
+17 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/async_file_util_adapter.cc
|
View
|
|
4 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
D |
webkit/fileapi/file_snapshot_policy.h
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/file_system_file_util.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/local_file_system_operation.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/local_file_system_operation.cc
|
View
|
|
2 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/local_file_util.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/local_file_util.cc
|
View
|
|
1 chunk |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/obfuscated_file_util.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/fileapi/obfuscated_file_util.cc
|
View
|
|
1 chunk |
+7 lines, -10 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|