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

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

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 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
« no previous file with comments | « ppapi/thunk/resource_creation_api.h ('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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/task_runner_util.h" 10 #include "base/task_runner_util.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 case kFileSystemTypeTemporary: 84 case kFileSystemTypeTemporary:
85 case kFileSystemTypePersistent: 85 case kFileSystemTypePersistent:
86 case kFileSystemTypeSyncable: 86 case kFileSystemTypeSyncable:
87 return FILE_PERMISSION_SANDBOX; 87 return FILE_PERMISSION_SANDBOX;
88 88
89 case kFileSystemTypeDrive: 89 case kFileSystemTypeDrive:
90 case kFileSystemTypeNativeForPlatformApp: 90 case kFileSystemTypeNativeForPlatformApp:
91 case kFileSystemTypeNativeLocal: 91 case kFileSystemTypeNativeLocal:
92 case kFileSystemTypeCloudDevice: 92 case kFileSystemTypeCloudDevice:
93 case kFileSystemTypeProvided: 93 case kFileSystemTypeProvided:
94 case kFileSystemTypePluginProvided:
94 case kFileSystemTypeDeviceMediaAsFileStorage: 95 case kFileSystemTypeDeviceMediaAsFileStorage:
95 return FILE_PERMISSION_USE_FILE_PERMISSION; 96 return FILE_PERMISSION_USE_FILE_PERMISSION;
96 97
97 case kFileSystemTypeRestrictedNativeLocal: 98 case kFileSystemTypeRestrictedNativeLocal:
98 return FILE_PERMISSION_READ_ONLY | 99 return FILE_PERMISSION_READ_ONLY |
99 FILE_PERMISSION_USE_FILE_PERMISSION; 100 FILE_PERMISSION_USE_FILE_PERMISSION;
100 101
101 case kFileSystemTypeDeviceMedia: 102 case kFileSystemTypeDeviceMedia:
102 case kFileSystemTypeIphoto: 103 case kFileSystemTypeIphoto:
103 case kFileSystemTypeItunes: 104 case kFileSystemTypeItunes:
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 } else if (parent != child) { 625 } else if (parent != child) {
625 bool result = parent.AppendRelativePath(child, &path); 626 bool result = parent.AppendRelativePath(child, &path);
626 DCHECK(result); 627 DCHECK(result);
627 } 628 }
628 629
629 operation_runner()->GetMetadata( 630 operation_runner()->GetMetadata(
630 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); 631 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info));
631 } 632 }
632 633
633 } // namespace storage 634 } // namespace storage
OLDNEW
« no previous file with comments | « ppapi/thunk/resource_creation_api.h ('k') | storage/common/fileapi/file_system_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698