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_EXTENSIONS_FILE_MANAGER_URL_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_URL_UTIL_H_
12 #include "base/strings/string16.h"
13 #include "ui/shell_dialogs/select_file_dialog.h"
20 namespace file_manager
{
23 // Returns the file manager's base URL, which just looks like
24 // chrome-extension://<app-id>/.
25 GURL
GetFileManagerBaseUrl();
27 // Returns the file manager's main page URL.
28 GURL
GetFileManagerMainPageUrl();
30 // Returns the file manager's main page URL with parameters encoded as JSON
31 // in the query string section. |file_types| is optional.
32 GURL
GetFileManagerMainPageUrlWithParams(
33 ui::SelectFileDialog::Type type
,
34 const string16
& title
,
35 const base::FilePath
& default_virtual_path
,
36 const ui::SelectFileDialog::FileTypeInfo
* file_types
,
38 const base::FilePath::StringType
& default_extension
);
40 // Returns the file manager's action choice URL.
41 GURL
GetActionChoiceUrl(const base::FilePath
& virtual_path
,
45 } // namespace file_manager
47 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_URL_UTIL_H_