file_manager: Move FindPreferredIcon() to drive_app_registry.h
[chromium-blink-merge.git] / chrome / browser / chromeos / extensions / file_manager / url_util.h
blobd14bb1c178cc7bdce82fde42e1c3ac9e1296f285
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_EXTENSIONS_FILE_MANAGER_URL_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_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 base {
17 class FilePath;
20 namespace file_manager {
21 namespace util {
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,
37 int file_type_index,
38 const base::FilePath::StringType& default_extension);
40 // Returns the file manager's action choice URL.
41 GURL GetActionChoiceUrl(const base::FilePath& virtual_path,
42 bool advanced_mode);
44 } // namespace util
45 } // namespace file_manager
47 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_URL_UTIL_H_