Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/url_util.h

Issue 23945002: file_manager: Move non-binding code to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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_EXTENSIONS_FILE_MANAGER_URL_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_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_EXTENSIONS_FILE_MANAGER_URL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698