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

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

Issue 2568033002: mediaview: Skeleton for ARC Documents Provider FS. (Closed)
Patch Set: IWYU and comments. Created 4 years 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 | « chrome/browser/platform_util_unittest.cc ('k') | 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 case kFileSystemTypeArcContent:
107 case kFileSystemTypeArcDocumentsProvider:
107 return FILE_PERMISSION_READ_ONLY | 108 return FILE_PERMISSION_READ_ONLY |
108 FILE_PERMISSION_USE_FILE_PERMISSION; 109 FILE_PERMISSION_USE_FILE_PERMISSION;
109 110
110 case kFileSystemTypeDeviceMedia: 111 case kFileSystemTypeDeviceMedia:
111 case kFileSystemTypeItunes: 112 case kFileSystemTypeItunes:
112 case kFileSystemTypeNativeMedia: 113 case kFileSystemTypeNativeMedia:
113 case kFileSystemTypePicasa: 114 case kFileSystemTypePicasa:
114 return FILE_PERMISSION_USE_FILE_PERMISSION; 115 return FILE_PERMISSION_USE_FILE_PERMISSION;
115 116
116 // Following types are only accessed via IsolatedFileSystem, and 117 // Following types are only accessed via IsolatedFileSystem, and
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 633
633 // TODO(mtomasz): Not all fields should be required for ResolveURL. 634 // TODO(mtomasz): Not all fields should be required for ResolveURL.
634 operation_runner()->GetMetadata( 635 operation_runner()->GetMetadata(
635 url, FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY | 636 url, FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY |
636 FileSystemOperation::GET_METADATA_FIELD_SIZE | 637 FileSystemOperation::GET_METADATA_FIELD_SIZE |
637 FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED, 638 FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED,
638 base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); 639 base::Bind(&DidGetMetadataForResolveURL, path, callback, info));
639 } 640 }
640 641
641 } // namespace storage 642 } // namespace storage
OLDNEW
« no previous file with comments | « chrome/browser/platform_util_unittest.cc ('k') | storage/common/fileapi/file_system_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698