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

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h

Issue 2589643002: mediaview: Register ARC documents provider file system. (Closed)
Patch Set: Rebased Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 namespace storage { 11 namespace storage {
12 class FileSystemURL; 12 class FileSystemURL;
13 } 13 }
14 14
15 namespace arc { 15 namespace arc {
16 16
17 // The name of the ARC content file system mount point. 17 // The name of the ARC content file system mount point.
18 extern const char kMountPointName[]; 18 extern const char kContentFileSystemMountPointName[];
19 19
20 // The path of the ARC content file system mount point. 20 // The path of the ARC content file system mount point.
21 extern const base::FilePath::CharType kMountPointPath[]; 21 extern const base::FilePath::CharType kContentFileSystemMountPointPath[];
22 22
23 // Escapes the given ARC URL. 23 // Escapes the given ARC URL.
24 std::string EscapeArcUrl(const GURL& arc_url); 24 std::string EscapeArcUrl(const GURL& arc_url);
25 25
26 // Unescapes the given escaped ARC URL. 26 // Unescapes the given escaped ARC URL.
27 GURL UnescapeArcUrl(const std::string& escaped_arc_url); 27 GURL UnescapeArcUrl(const std::string& escaped_arc_url);
28 28
29 // Converts a URL which can be used within the ARC container to an externalfile: 29 // Converts a URL which can be used within the ARC container to an externalfile:
30 // URL which can be used by Chrome. 30 // URL which can be used by Chrome.
31 GURL ArcUrlToExternalFileUrl(const GURL& arc_url); 31 GURL ArcUrlToExternalFileUrl(const GURL& arc_url);
32 32
33 // Converts an externalfile: URL to a URL which can be used within the ARC 33 // Converts an externalfile: URL to a URL which can be used within the ARC
34 // container. If the given URL cannot be converted to an ARC URL, returns an 34 // container. If the given URL cannot be converted to an ARC URL, returns an
35 // empty GURL. 35 // empty GURL.
36 GURL ExternalFileUrlToArcUrl(const GURL& external_file_url); 36 GURL ExternalFileUrlToArcUrl(const GURL& external_file_url);
37 37
38 // Converts a FileSystemURL to a URL which can be used within the ARC container. 38 // Converts a FileSystemURL to a URL which can be used within the ARC container.
39 GURL FileSystemUrlToArcUrl(const storage::FileSystemURL& url); 39 GURL FileSystemUrlToArcUrl(const storage::FileSystemURL& url);
40 40
41 } // namespace arc 41 } // namespace arc
42 42
43 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_ H_ 43 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698