1 // Copyright 2017 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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_CHROME_CONTENT_PROVIDER_URL_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_CHROME_CONTENT_PROVIDER_URL_UTIL_H_
7 
8 #include "url/gurl.h"
9 
10 namespace arc {
11 
12 // Encodes the given URL to a chrome content provider URL, which can be used by
13 // ARC applications to access the original URL.
14 GURL EncodeToChromeContentProviderUrl(const GURL& url);
15 
16 // Decodes the given chrome content provider URL to the original URL.
17 // Returns the empty GURL for invalid inputs.
18 GURL DecodeFromChromeContentProviderUrl(
19     const GURL& chrome_content_provider_url);
20 
21 }  // namespace arc
22 
23 #endif  // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_CHROME_CONTENT_PROVIDER_URL_UTIL_H_
24