Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / file_manager / url_util.h
blobf53158202950bec9bd36c05e93c7760afe255329
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.
4 //
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_
10 #include <string>
12 #include "base/strings/string16.h"
13 #include "ui/shell_dialogs/select_file_dialog.h"
14 #include "url/gurl.h"
16 namespace file_manager {
17 namespace util {
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,
31 int file_type_index,
32 const base::FilePath::StringType& default_extension);
34 } // namespace util
35 } // namespace file_manager
37 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_