- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / file_manager / url_util.h
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.
6
7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_
9
10 #include <string>
11
12 #include "base/strings/string16.h"
13 #include "ui/shell_dialogs/select_file_dialog.h"
14 #include "url/gurl.h"
15
16 namespace base {
17 class FilePath;
18 }
19
20 namespace file_manager {
21 namespace util {
22
23 // Returns the file manager's base URL, which just looks like
24 // chrome-extension://<app-id>/.
25 GURL GetFileManagerBaseUrl();
26
27 // Returns the file manager's main page URL.
28 GURL GetFileManagerMainPageUrl();
29
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,
37     int file_type_index,
38     const base::FilePath::StringType& default_extension);
39
40 // Returns the file manager's action choice URL.
41 GURL GetActionChoiceUrl(const base::FilePath& virtual_path,
42                         bool advanced_mode);
43
44 }  // namespace util
45 }  // namespace file_manager
46
47 #endif  // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_