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 base URL, which just looks like
20 // chrome-extension://<app-id>/.
21 GURL GetFileManagerBaseUrl();
23 // Returns the file manager's main page URL.
24 GURL GetFileManagerMainPageUrl();
26 // Returns the file manager's main page URL with parameters encoded as JSON
27 // in the query string section. |file_types| is optional.
28 GURL GetFileManagerMainPageUrlWithParams(
29 ui::SelectFileDialog::Type type,
30 const base::string16& title,
31 const GURL& current_directory_url,
32 const GURL& selection_url,
33 const std::string& target_name,
34 const ui::SelectFileDialog::FileTypeInfo* file_types,
36 const base::FilePath::StringType& default_extension);
39 } // namespace file_manager
41 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_