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

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

Issue 2467213002: arc: Implement Read and GetFileSize for ARC content file system (Closed)
Patch Set: Created 4 years, 1 month 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 {
12 class FileSystemURL;
13 }
14
11 namespace arc { 15 namespace arc {
12 16
13 // The name of the ARC content file system mount point. 17 // The name of the ARC content file system mount point.
14 extern const char kMountPointName[]; 18 extern const char kMountPointName[];
15 19
16 // The path of the ARC content file system mount point. 20 // The path of the ARC content file system mount point.
17 extern const base::FilePath::CharType kMountPointPath[]; 21 extern const base::FilePath::CharType kMountPointPath[];
18 22
19 // Converts a URL which can be used within the ARC container to an externalfile: 23 // Converts a URL which can be used within the ARC container to an externalfile:
20 // URL which can be used by Chrome. 24 // URL which can be used by Chrome.
21 GURL ArcUrlToExternalFileUrl(const GURL& arc_url); 25 GURL ArcUrlToExternalFileUrl(const GURL& arc_url);
22 26
23 // Converts an externalfile: URL to a URL which can be used within the ARC 27 // Converts an externalfile: URL to a URL which can be used within the ARC
24 // container. If the given URL cannot be converted to an ARC URL, returns an 28 // container. If the given URL cannot be converted to an ARC URL, returns an
25 // empty GURL. 29 // empty GURL.
26 GURL ExternalFileUrlToArcUrl(const GURL& external_file_url); 30 GURL ExternalFileUrlToArcUrl(const GURL& external_file_url);
27 31
32 // Converts a FileSystemURL to a URL which can be used within the ARC container.
33 GURL FileSystemUrlToArcUrl(const storage::FileSystemURL& url);
34
28 } // namespace arc 35 } // namespace arc
29 36
30 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_ H_ 37 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698