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
3 // found in the LICENSE file.
5 // This file provides URL-related utilities.
7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_
12 #include "base/strings/string16.h"
13 #include "ui/shell_dialogs/select_file_dialog.h"
16 namespace file_manager
{
19 // Returns the file manager's main page URL.
20 GURL
GetFileManagerMainPageUrl();
22 // Returns the file manager's main page URL with parameters encoded as JSON
23 // in the query string section. |file_types| is optional.
24 GURL
GetFileManagerMainPageUrlWithParams(
25 ui::SelectFileDialog::Type type
,
26 const base::string16
& title
,
27 const GURL
& current_directory_url
,
28 const GURL
& selection_url
,
29 const std::string
& target_name
,
30 const ui::SelectFileDialog::FileTypeInfo
* file_types
,
32 const base::FilePath::StringType
& default_extension
);
35 } // namespace file_manager
37 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_