| 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 URL-related utilities. | 5 // This file provides URL-related utilities. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ | 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "ui/shell_dialogs/select_file_dialog.h" | 13 #include "ui/shell_dialogs/select_file_dialog.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace base { | |
| 17 class FilePath; | |
| 18 } | |
| 19 | |
| 20 namespace file_manager { | 16 namespace file_manager { |
| 21 namespace util { | 17 namespace util { |
| 22 | 18 |
| 23 // Returns the file manager's base URL, which just looks like | 19 // Returns the file manager's base URL, which just looks like |
| 24 // chrome-extension://<app-id>/. | 20 // chrome-extension://<app-id>/. |
| 25 GURL GetFileManagerBaseUrl(); | 21 GURL GetFileManagerBaseUrl(); |
| 26 | 22 |
| 27 // Returns the file manager's main page URL. | 23 // Returns the file manager's main page URL. |
| 28 GURL GetFileManagerMainPageUrl(); | 24 GURL GetFileManagerMainPageUrl(); |
| 29 | 25 |
| 30 // Returns the file manager's main page URL with parameters encoded as JSON | 26 // Returns the file manager's main page URL with parameters encoded as JSON |
| 31 // in the query string section. |file_types| is optional. | 27 // in the query string section. |file_types| is optional. |
| 32 GURL GetFileManagerMainPageUrlWithParams( | 28 GURL GetFileManagerMainPageUrlWithParams( |
| 33 ui::SelectFileDialog::Type type, | 29 ui::SelectFileDialog::Type type, |
| 34 const base::string16& title, | 30 const base::string16& title, |
| 35 const base::FilePath& current_directory_virtual_path, | 31 const GURL& current_directory_url, |
| 36 const base::FilePath& selection_virtual_path, | 32 const GURL& selection_url, |
| 33 const std::string& target_name, |
| 37 const ui::SelectFileDialog::FileTypeInfo* file_types, | 34 const ui::SelectFileDialog::FileTypeInfo* file_types, |
| 38 int file_type_index, | 35 int file_type_index, |
| 39 const base::FilePath::StringType& default_extension); | 36 const base::FilePath::StringType& default_extension); |
| 40 | 37 |
| 41 } // namespace util | 38 } // namespace util |
| 42 } // namespace file_manager | 39 } // namespace file_manager |
| 43 | 40 |
| 44 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ | 41 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ |
| OLD | NEW |