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

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

Issue 12258021: Fix filesystem API file_handlers to work for drive on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « webkit/fileapi/file_system_url.cc ('k') | webkit/fileapi/isolated_context.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 "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/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 case kFileSystemTypeDragged: 232 case kFileSystemTypeDragged:
233 return "Dragged"; 233 return "Dragged";
234 case kFileSystemTypeNativeMedia: 234 case kFileSystemTypeNativeMedia:
235 return "NativeMedia"; 235 return "NativeMedia";
236 case kFileSystemTypeDeviceMedia: 236 case kFileSystemTypeDeviceMedia:
237 return "DeviceMedia"; 237 return "DeviceMedia";
238 case kFileSystemTypeDrive: 238 case kFileSystemTypeDrive:
239 return "Drive"; 239 return "Drive";
240 case kFileSystemTypeSyncable: 240 case kFileSystemTypeSyncable:
241 return "Syncable"; 241 return "Syncable";
242 case kFileSystemTypeExternalFullPath:
243 return "ExternalFullPath";
242 case kFileSystemTypeUnknown: 244 case kFileSystemTypeUnknown:
243 return "Unknown"; 245 return "Unknown";
244 } 246 }
245 NOTREACHED(); 247 NOTREACHED();
246 return std::string(); 248 return std::string();
247 } 249 }
248 250
249 std::string FilePathToString(const base::FilePath& file_path) { 251 std::string FilePathToString(const base::FilePath& file_path) {
250 #if defined(OS_WIN) 252 #if defined(OS_WIN)
251 return UTF16ToUTF8(file_path.value()); 253 return UTF16ToUTF8(file_path.value());
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 root.append("/"); 366 root.append("/");
365 } 367 }
366 return root; 368 return root;
367 } 369 }
368 370
369 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { 371 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) {
370 return url1.origin() == url2.origin() && url1.type() == url2.type(); 372 return url1.origin() == url2.origin() && url1.type() == url2.type();
371 } 373 }
372 374
373 } // namespace fileapi 375 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_url.cc ('k') | webkit/fileapi/isolated_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698