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

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

Issue 246293011: Mount MTP devices in Chrome OS Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix test (handle null StorageMonitor in some tests) Created 6 years, 7 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 #include "webkit/browser/fileapi/file_system_context.h" 5 #include "webkit/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 kFileSystemTypeDeviceMediaAsFileStorage:
94 return FILE_PERMISSION_USE_FILE_PERMISSION; 95 return FILE_PERMISSION_USE_FILE_PERMISSION;
95 96
96 case kFileSystemTypeRestrictedNativeLocal: 97 case kFileSystemTypeRestrictedNativeLocal:
97 return FILE_PERMISSION_READ_ONLY | 98 return FILE_PERMISSION_READ_ONLY |
98 FILE_PERMISSION_USE_FILE_PERMISSION; 99 FILE_PERMISSION_USE_FILE_PERMISSION;
99 100
100 case kFileSystemTypeDeviceMedia: 101 case kFileSystemTypeDeviceMedia:
101 case kFileSystemTypeIphoto: 102 case kFileSystemTypeIphoto:
102 case kFileSystemTypeItunes: 103 case kFileSystemTypeItunes:
103 case kFileSystemTypeNativeMedia: 104 case kFileSystemTypeNativeMedia:
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 } else if (parent != child) { 607 } else if (parent != child) {
607 bool result = parent.AppendRelativePath(child, &path); 608 bool result = parent.AppendRelativePath(child, &path);
608 DCHECK(result); 609 DCHECK(result);
609 } 610 }
610 611
611 operation_runner()->GetMetadata( 612 operation_runner()->GetMetadata(
612 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); 613 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info));
613 } 614 }
614 615
615 } // namespace fileapi 616 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/external_mount_points.cc ('k') | webkit/common/fileapi/file_system_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698