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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 system related API functions. 5 // This file provides file system related API functions.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "chrome/browser/chromeos/drive/file_errors.h" 12 #include "chrome/browser/chromeos/drive/file_errors.h"
13 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" 13 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace base { 17 namespace base {
18 class FilePath; 18 class FilePath;
19 } 19 }
20 20
21 namespace fileapi { 21 namespace storage {
22 class FileSystemContext; 22 class FileSystemContext;
23 } 23 }
24 24
25 namespace file_manager { 25 namespace file_manager {
26 namespace util { 26 namespace util {
27 struct EntryDefinition; 27 struct EntryDefinition;
28 typedef std::vector<EntryDefinition> EntryDefinitionList; 28 typedef std::vector<EntryDefinition> EntryDefinitionList;
29 } // namespace util 29 } // namespace util
30 } // namespace file_manager 30 } // namespace file_manager
31 31
(...skipping 17 matching lines...) Expand all
49 const GURL& root_url); 49 const GURL& root_url);
50 void RespondFailedOnUIThread(base::File::Error error_code); 50 void RespondFailedOnUIThread(base::File::Error error_code);
51 51
52 // Called when something goes wrong. Records the error to |error_| per the 52 // Called when something goes wrong. Records the error to |error_| per the
53 // error code and reports that the private API function failed. 53 // error code and reports that the private API function failed.
54 void DidFail(base::File::Error error_code); 54 void DidFail(base::File::Error error_code);
55 55
56 // Sets up file system access permissions to the extension identified by 56 // Sets up file system access permissions to the extension identified by
57 // |child_id|. 57 // |child_id|.
58 bool SetupFileSystemAccessPermissions( 58 bool SetupFileSystemAccessPermissions(
59 scoped_refptr<fileapi::FileSystemContext> file_system_context, 59 scoped_refptr<storage::FileSystemContext> file_system_context,
60 int child_id, 60 int child_id,
61 Profile* profile, 61 Profile* profile,
62 scoped_refptr<const extensions::Extension> extension); 62 scoped_refptr<const extensions::Extension> extension);
63 63
64 // Called when the entry definition is computed. 64 // Called when the entry definition is computed.
65 void OnEntryDefinition( 65 void OnEntryDefinition(
66 const file_manager::util::EntryDefinition& entry_definition); 66 const file_manager::util::EntryDefinition& entry_definition);
67 }; 67 };
68 68
69 // Base class for FileBrowserPrivateAddFileWatchFunction and 69 // Base class for FileBrowserPrivateAddFileWatchFunction and
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual bool RunAsync() OVERRIDE; 223 virtual bool RunAsync() OVERRIDE;
224 224
225 private: 225 private:
226 void RunAsyncAfterConvertFileDefinitionListToEntryDefinitionList(scoped_ptr< 226 void RunAsyncAfterConvertFileDefinitionListToEntryDefinitionList(scoped_ptr<
227 file_manager::util::EntryDefinitionList> entry_definition_list); 227 file_manager::util::EntryDefinitionList> entry_definition_list);
228 }; 228 };
229 229
230 } // namespace extensions 230 } // namespace extensions
231 231
232 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_ 232 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698