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

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

Issue 132453007: Migrate fullPaths to URLs in appState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/url_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file provides URL-related utilities. 5 // This file provides URL-related utilities.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "ui/shell_dialogs/select_file_dialog.h" 13 #include "ui/shell_dialogs/select_file_dialog.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace base {
17 class FilePath;
18 }
19
20 namespace file_manager { 16 namespace file_manager {
21 namespace util { 17 namespace util {
22 18
23 // Returns the file manager's base URL, which just looks like 19 // Returns the file manager's base URL, which just looks like
24 // chrome-extension://<app-id>/. 20 // chrome-extension://<app-id>/.
25 GURL GetFileManagerBaseUrl(); 21 GURL GetFileManagerBaseUrl();
26 22
27 // Returns the file manager's main page URL. 23 // Returns the file manager's main page URL.
28 GURL GetFileManagerMainPageUrl(); 24 GURL GetFileManagerMainPageUrl();
29 25
30 // Returns the file manager's main page URL with parameters encoded as JSON 26 // Returns the file manager's main page URL with parameters encoded as JSON
31 // in the query string section. |file_types| is optional. 27 // in the query string section. |file_types| is optional.
32 GURL GetFileManagerMainPageUrlWithParams( 28 GURL GetFileManagerMainPageUrlWithParams(
33 ui::SelectFileDialog::Type type, 29 ui::SelectFileDialog::Type type,
34 const base::string16& title, 30 const base::string16& title,
35 const base::FilePath& current_directory_virtual_path, 31 const GURL& current_directory_url,
36 const base::FilePath& selection_virtual_path, 32 const GURL& selection_url,
33 const std::string& target_name,
37 const ui::SelectFileDialog::FileTypeInfo* file_types, 34 const ui::SelectFileDialog::FileTypeInfo* file_types,
38 int file_type_index, 35 int file_type_index,
39 const base::FilePath::StringType& default_extension); 36 const base::FilePath::StringType& default_extension);
40 37
41 } // namespace util 38 } // namespace util
42 } // namespace file_manager 39 } // namespace file_manager
43 40
44 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_ 41 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_URL_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698