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 utility functions for file browser handlers. | 5 // This file provides utility functions for file browser handlers. |
6 // https://developer.chrome.com/extensions/fileBrowserHandler.html | 6 // https://developer.chrome.com/extensions/fileBrowserHandler.html |
7 | 7 |
8 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_BROWSER_HANDLERS_H_ | 8 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_BROWSER_HANDLERS_H_ |
9 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_BROWSER_HANDLERS_H_ | 9 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_BROWSER_HANDLERS_H_ |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 Profile* profile, | 49 Profile* profile, |
50 const std::vector<GURL>& file_list); | 50 const std::vector<GURL>& file_list); |
51 | 51 |
52 // Executes a file browser handler specified by |extension| of the given | 52 // Executes a file browser handler specified by |extension| of the given |
53 // action ID for |file_urls|. Returns false if undeclared handlers are | 53 // action ID for |file_urls|. Returns false if undeclared handlers are |
54 // found. |done| is on completion. See also the comment at ExecuteFileTask() | 54 // found. |done| is on completion. See also the comment at ExecuteFileTask() |
55 // for other parameters. | 55 // for other parameters. |
56 bool ExecuteFileBrowserHandler( | 56 bool ExecuteFileBrowserHandler( |
57 Profile* profile, | 57 Profile* profile, |
58 const extensions::Extension* extension, | 58 const extensions::Extension* extension, |
59 int32 tab_id, | |
60 const std::string& action_id, | 59 const std::string& action_id, |
61 const std::vector<fileapi::FileSystemURL>& file_urls, | 60 const std::vector<fileapi::FileSystemURL>& file_urls, |
62 const file_tasks::FileTaskFinishedCallback& done); | 61 const file_tasks::FileTaskFinishedCallback& done); |
63 | 62 |
64 } // namespace file_browser_handlers | 63 } // namespace file_browser_handlers |
65 } // namespace file_manager | 64 } // namespace file_manager |
66 | 65 |
67 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_BROWSER_HANDLERS_H_ | 66 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_BROWSER_HANDLERS_H_ |
OLD | NEW |