OLD | NEW |
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> |
(...skipping 24 matching lines...) Expand all Loading... |
35 FileBrowserPrivateRequestFileSystemFunction(); | 35 FileBrowserPrivateRequestFileSystemFunction(); |
36 | 36 |
37 protected: | 37 protected: |
38 virtual ~FileBrowserPrivateRequestFileSystemFunction(); | 38 virtual ~FileBrowserPrivateRequestFileSystemFunction(); |
39 | 39 |
40 // AsyncExtensionFunction overrides. | 40 // AsyncExtensionFunction overrides. |
41 virtual bool RunImpl() OVERRIDE; | 41 virtual bool RunImpl() OVERRIDE; |
42 | 42 |
43 private: | 43 private: |
44 void RespondSuccessOnUIThread(const std::string& name, | 44 void RespondSuccessOnUIThread(const std::string& name, |
45 const GURL& root_path); | 45 const GURL& root_url); |
46 void RespondFailedOnUIThread(base::PlatformFileError error_code); | 46 void RespondFailedOnUIThread(base::PlatformFileError error_code); |
47 | 47 |
48 // Called when FileSystemContext::OpenFileSystem() is done. | 48 // Called when FileSystemContext::OpenFileSystem() is done. |
49 void DidOpenFileSystem( | 49 void DidOpenFileSystem( |
50 scoped_refptr<fileapi::FileSystemContext> file_system_context, | 50 scoped_refptr<fileapi::FileSystemContext> file_system_context, |
51 base::PlatformFileError result, | 51 base::PlatformFileError result, |
52 const std::string& name, | 52 const std::string& name, |
53 const GURL& root_path); | 53 const GURL& root_url); |
54 | 54 |
55 // Called when something goes wrong. Records the error to |error_| per the | 55 // Called when something goes wrong. Records the error to |error_| per the |
56 // error code and reports that the private API function failed. | 56 // error code and reports that the private API function failed. |
57 void DidFail(base::PlatformFileError error_code); | 57 void DidFail(base::PlatformFileError error_code); |
58 | 58 |
59 // Sets up file system access permissions to the extension identified by | 59 // Sets up file system access permissions to the extension identified by |
60 // |child_id|. | 60 // |child_id|. |
61 bool SetupFileSystemAccessPermissions( | 61 bool SetupFileSystemAccessPermissions( |
62 scoped_refptr<fileapi::FileSystemContext> file_system_context, | 62 scoped_refptr<fileapi::FileSystemContext> file_system_context, |
63 int child_id, | 63 int child_id, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 protected: | 248 protected: |
249 virtual ~FileBrowserPrivateCancelCopyFunction(); | 249 virtual ~FileBrowserPrivateCancelCopyFunction(); |
250 | 250 |
251 // AsyncExtensionFunction overrides. | 251 // AsyncExtensionFunction overrides. |
252 virtual bool RunImpl() OVERRIDE; | 252 virtual bool RunImpl() OVERRIDE; |
253 }; | 253 }; |
254 | 254 |
255 } // namespace extensions | 255 } // namespace extensions |
256 | 256 |
257 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST
EM_H_ | 257 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST
EM_H_ |
OLD | NEW |