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

Side by Side Diff: storage/browser/fileapi/file_system_context.cc

Issue 2405193002: Add ARC contents filesystem type (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | storage/common/fileapi/file_system_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "storage/browser/fileapi/file_system_context.h" 5 #include "storage/browser/fileapi/file_system_context.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 case kFileSystemTypeDrive: 97 case kFileSystemTypeDrive:
98 case kFileSystemTypeNativeForPlatformApp: 98 case kFileSystemTypeNativeForPlatformApp:
99 case kFileSystemTypeNativeLocal: 99 case kFileSystemTypeNativeLocal:
100 case kFileSystemTypeCloudDevice: 100 case kFileSystemTypeCloudDevice:
101 case kFileSystemTypeProvided: 101 case kFileSystemTypeProvided:
102 case kFileSystemTypeDeviceMediaAsFileStorage: 102 case kFileSystemTypeDeviceMediaAsFileStorage:
103 return FILE_PERMISSION_USE_FILE_PERMISSION; 103 return FILE_PERMISSION_USE_FILE_PERMISSION;
104 104
105 case kFileSystemTypeRestrictedNativeLocal: 105 case kFileSystemTypeRestrictedNativeLocal:
106 case kFileSystemTypeArcContent:
106 return FILE_PERMISSION_READ_ONLY | 107 return FILE_PERMISSION_READ_ONLY |
107 FILE_PERMISSION_USE_FILE_PERMISSION; 108 FILE_PERMISSION_USE_FILE_PERMISSION;
108 109
109 case kFileSystemTypeDeviceMedia: 110 case kFileSystemTypeDeviceMedia:
110 case kFileSystemTypeItunes: 111 case kFileSystemTypeItunes:
111 case kFileSystemTypeNativeMedia: 112 case kFileSystemTypeNativeMedia:
112 case kFileSystemTypePicasa: 113 case kFileSystemTypePicasa:
113 return FILE_PERMISSION_USE_FILE_PERMISSION; 114 return FILE_PERMISSION_USE_FILE_PERMISSION;
114 115
115 // Following types are only accessed via IsolatedFileSystem, and 116 // Following types are only accessed via IsolatedFileSystem, and
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 634
634 // TODO(mtomasz): Not all fields should be required for ResolveURL. 635 // TODO(mtomasz): Not all fields should be required for ResolveURL.
635 operation_runner()->GetMetadata( 636 operation_runner()->GetMetadata(
636 url, FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY | 637 url, FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY |
637 FileSystemOperation::GET_METADATA_FIELD_SIZE | 638 FileSystemOperation::GET_METADATA_FIELD_SIZE |
638 FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED, 639 FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED,
639 base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); 640 base::Bind(&DidGetMetadataForResolveURL, path, callback, info));
640 } 641 }
641 642
642 } // namespace storage 643 } // namespace storage
OLDNEW
« no previous file with comments | « no previous file | storage/common/fileapi/file_system_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698