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

Unified Diff: extensions/common/file_util.h

Issue 65123002: Move chrome/common/extensions/background_info.h to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios, browser_tests Created 7 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 side-by-side diff with in-line comments
Download patch
Index: extensions/common/file_util.h
diff --git a/extensions/common/file_util.h b/extensions/common/file_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ec7adec5b7ae186889e762e386e3b6658f41bf8
--- /dev/null
+++ b/extensions/common/file_util.h
@@ -0,0 +1,28 @@
+// Copyright 2013 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 EXTENSIONS_COMMON_FILE_UTIL_H_
+#define EXTENSIONS_COMMON_FILE_UTIL_H_
+
+class GURL;
+
+namespace base {
+class FilePath;
+}
+
+namespace extensions {
+namespace file_util {
+
+// Get a relative file path from a chrome-extension:// URL.
+base::FilePath ExtensionURLToRelativeFilePath(const GURL& url);
+
+// Get a full file path from a chrome-extension-resource:// URL, If the URL
+// points a file outside of root, this function will return empty FilePath.
+base::FilePath ExtensionResourceURLToFilePath(const GURL& url,
+ const base::FilePath& root);
+
+} // namespace file_util
+} // namespace extensions
+
+#endif // EXTENSIONS_COMMON_FILE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698