Chromium Code Reviews| 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 fileBrowserPrivate API. | 5 // This file provides utility functions for fileBrowserPrivate API. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_UTIL_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_UTIL_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_UTIL_H_ | 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_UTIL_H_ |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 | 54 |
| 55 // The callback type is used for GetSelectedFileInfo(). | 55 // The callback type is used for GetSelectedFileInfo(). |
| 56 typedef base::Callback<void(const std::vector<ui::SelectedFileInfo>&)> | 56 typedef base::Callback<void(const std::vector<ui::SelectedFileInfo>&)> |
| 57 GetSelectedFileInfoCallback; | 57 GetSelectedFileInfoCallback; |
| 58 | 58 |
| 59 // Gets the information for |file_urls|. | 59 // Gets the information for |file_urls|. |
| 60 void GetSelectedFileInfo(content::RenderViewHost* render_view_host, | 60 void GetSelectedFileInfo(content::RenderViewHost* render_view_host, |
| 61 Profile* profile, | 61 Profile* profile, |
| 62 const std::vector<GURL>& file_urls, | 62 const std::vector<GURL>& file_urls, |
| 63 bool for_opening, | 63 bool for_opening, |
| 64 bool need_local_path, | |
|
satorux1
2013/08/06 02:07:17
Maybe use a bitmask? Then, the callers would be cl
kinaba
2013/08/06 06:20:56
Done.
I changed to a simple enum rather than a bit
| |
| 64 GetSelectedFileInfoCallback callback); | 65 GetSelectedFileInfoCallback callback); |
| 65 | 66 |
| 66 } // namespace util | 67 } // namespace util |
| 67 } // namespace file_manager | 68 } // namespace file_manager |
| 68 | 69 |
| 69 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_UTIL_H_ | 70 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_UTIL_H_ |
| OLD | NEW |