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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h

Issue 2437693002: arc: Add URL converter functions (Closed)
Patch Set: Anonymous namespace Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..86fa236a7cfcfda1374a30866fc2e1a02b9a1348
--- /dev/null
+++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_
+
+#include "url/gurl.h"
+
+namespace arc {
+
+// Converts a URL which can be used within the ARC container to an externalfile:
+// URL which can be used by Chrome.
+GURL ArcUrlToExternalFileUrl(const GURL& arc_url);
+
+// Converts an externalfile: URL to a URL which can be used within the ARC
+// container. If the given URL cannot be converted to an ARC URL, returns an
+// empty GURL.
+GURL ExternalFileUrlToArcUrl(const GURL& external_file_url);
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_URL_UTIL_H_
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698