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

Side by Side Diff: webkit/fileapi/file_system_util.cc

Issue 11648027: Extract external file systems handling from isolated context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/fileapi/file_system_util.h" 5 #include "webkit/fileapi/file_system_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 case kFileSystemTypeIsolated: 169 case kFileSystemTypeIsolated:
170 return "Isolated"; 170 return "Isolated";
171 case kFileSystemTypeExternal: 171 case kFileSystemTypeExternal:
172 return "External"; 172 return "External";
173 case kFileSystemTypeTest: 173 case kFileSystemTypeTest:
174 return "Test"; 174 return "Test";
175 case kFileSystemTypeNativeLocal: 175 case kFileSystemTypeNativeLocal:
176 return "NativeLocal"; 176 return "NativeLocal";
177 case kFileSystemTypeRestrictedNativeLocal: 177 case kFileSystemTypeRestrictedNativeLocal:
178 return "RestrictedNativeLocal"; 178 return "RestrictedNativeLocal";
179 case kFileSystemTypeIsolatedNativeLocal:
180 return "NativeLocal";
179 case kFileSystemTypeDragged: 181 case kFileSystemTypeDragged:
180 return "Dragged"; 182 return "Dragged";
181 case kFileSystemTypeNativeMedia: 183 case kFileSystemTypeNativeMedia:
182 return "NativeMedia"; 184 return "NativeMedia";
183 case kFileSystemTypeDeviceMedia: 185 case kFileSystemTypeDeviceMedia:
184 return "DeviceMedia"; 186 return "DeviceMedia";
185 case kFileSystemTypeDrive: 187 case kFileSystemTypeDrive:
186 return "Drive"; 188 return "Drive";
187 case kFileSystemTypeSyncable: 189 case kFileSystemTypeSyncable:
188 return "Syncable"; 190 return "Syncable";
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 269
268 *filesystem_id = filesystem_name.substr(pos + start_token.length(), 270 *filesystem_id = filesystem_name.substr(pos + start_token.length(),
269 std::string::npos); 271 std::string::npos);
270 if (filesystem_id->empty()) 272 if (filesystem_id->empty())
271 return false; 273 return false;
272 274
273 return true; 275 return true;
274 } 276 }
275 277
276 } // namespace fileapi 278 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698