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

Side by Side Diff: chrome/browser/chromeos/file_manager/fileapi_util.h

Issue 304373004: Implement IsNonNativeLocalPathDirectory for supporting non-local non-Drive directory access in apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment. Created 6 years, 6 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 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 // This file provides File API related utilities. 5 // This file provides File API related utilities.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 #include "webkit/browser/fileapi/file_system_operation_runner.h"
16 17
17 class Profile; 18 class Profile;
18 19
19 namespace content { 20 namespace content {
20 class RenderViewHost; 21 class RenderViewHost;
21 } 22 }
22 23
23 namespace fileapi { 24 namespace fileapi {
24 class FileSystemContext; 25 class FileSystemContext;
25 } 26 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Converts a list of file definitions into a list of entry definitions and 118 // Converts a list of file definitions into a list of entry definitions and
118 // returns it via |callback|. The method is safe, |file_definition_list| is 119 // returns it via |callback|. The method is safe, |file_definition_list| is
119 // copied internally. The output list has the same order of items and size as 120 // copied internally. The output list has the same order of items and size as
120 // the input vector. |profile| cannot be null. Must be called on UI thread. 121 // the input vector. |profile| cannot be null. Must be called on UI thread.
121 void ConvertFileDefinitionListToEntryDefinitionList( 122 void ConvertFileDefinitionListToEntryDefinitionList(
122 Profile* profile, 123 Profile* profile,
123 const std::string& extension_id, 124 const std::string& extension_id,
124 const FileDefinitionList& file_definition_list, 125 const FileDefinitionList& file_definition_list,
125 const EntryDefinitionListCallback& callback); 126 const EntryDefinitionListCallback& callback);
126 127
128 // Checks if a directory exists at |url|.
129 void CheckIfDirectoryExists(
130 scoped_refptr<fileapi::FileSystemContext> file_system_context,
131 const GURL& url,
132 const fileapi::FileSystemOperationRunner::StatusCallback& callback);
133
127 } // namespace util 134 } // namespace util
128 } // namespace file_manager 135 } // namespace file_manager
129 136
130 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ 137 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util.cc ('k') | chrome/browser/chromeos/file_manager/fileapi_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698