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

Side by Side Diff: webkit/browser/fileapi/dragged_file_util.h

Issue 190533005: Bug 343571: Dragging and dropping a directory containing a symlink results in the symlink being ign… Base URL: https://chromium.googlesource.com/chromium/src.git@344225
Patch Set: Created 6 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
« no previous file with comments | « no previous file | webkit/browser/fileapi/dragged_file_util.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef WEBKIT_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_
6 #define WEBKIT_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ 6 #define WEBKIT_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "webkit/browser/fileapi/local_file_util.h" 9 #include "webkit/browser/fileapi/local_file_util.h"
10 #include "webkit/browser/webkit_storage_browser_export.h" 10 #include "webkit/browser/webkit_storage_browser_export.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 13
14 class FileSystemOperationContext; 14 class FileSystemOperationContext;
15 15
16 // Dragged file system is a specialized LocalFileUtil where read access to 16 // Dragged file system is a specialized LocalFileUtil where read access to
17 // the virtual root directory (i.e. empty cracked path case) is allowed 17 // the virtual root directory (i.e. empty cracked path case) is allowed
18 // and single isolated context may be associated with multiple file paths. 18 // and single isolated context may be associated with multiple file paths.
19 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE DraggedFileUtil 19 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE DraggedFileUtil
20 : public LocalFileUtil { 20 : public LocalFileUtil {
21 public: 21 public:
22 DraggedFileUtil(); 22 DraggedFileUtil();
23 virtual ~DraggedFileUtil() {} 23 virtual ~DraggedFileUtil() {}
24 24
25 // FileSystemFileUtil overrides. 25 // FileSystemFileUtil overrides.
26 virtual base::File::Error CreateOrOpen(
27 FileSystemOperationContext* context,
28 const FileSystemURL& url,
29 int file_flags,
30 base::PlatformFile* file_handle,
31 bool* created) OVERRIDE;
26 virtual base::File::Error GetFileInfo( 32 virtual base::File::Error GetFileInfo(
27 FileSystemOperationContext* context, 33 FileSystemOperationContext* context,
28 const FileSystemURL& url, 34 const FileSystemURL& url,
29 base::File::Info* file_info, 35 base::File::Info* file_info,
30 base::FilePath* platform_path) OVERRIDE; 36 base::FilePath* platform_path) OVERRIDE;
31 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( 37 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator(
32 FileSystemOperationContext* context, 38 FileSystemOperationContext* context,
33 const FileSystemURL& root_url) OVERRIDE; 39 const FileSystemURL& root_url) OVERRIDE;
34 40
35 private: 41 private:
36 DISALLOW_COPY_AND_ASSIGN(DraggedFileUtil); 42 DISALLOW_COPY_AND_ASSIGN(DraggedFileUtil);
37 }; 43 };
38 44
39 } // namespace fileapi 45 } // namespace fileapi
40 46
41 #endif // WEBKIT_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ 47 #endif // WEBKIT_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/browser/fileapi/dragged_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698