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

Unified Diff: components/resource_provider/file_utils.h

Issue 1108403008: Adds resource_provider::ResourceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 8 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
« no previous file with comments | « components/resource_provider/OWNERS ('k') | components/resource_provider/file_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/resource_provider/file_utils.h
diff --git a/components/resource_provider/file_utils.h b/components/resource_provider/file_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..7ddf94728bdcb75287f240b2119d20a73053fd41
--- /dev/null
+++ b/components/resource_provider/file_utils.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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 COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_
+#define COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_
+
+#include <string>
+
+class GURL;
+
+namespace base {
+class FilePath;
+}
+
+namespace resource_provider {
+
+// Returns the path to the resources for |application_url|, or an empty
+// path if |application_url| is not valid.
+base::FilePath GetPathForApplicationUrl(const GURL& application_url);
+
+// Returns the path to the specified resource. |app_path| was previously
+// obtained by way of GetPathForApplicationUrl().
+base::FilePath GetPathForResourceNamed(const base::FilePath& app_path,
+ const std::string& resource_path);
+
+} // namespace resource_provider
+
+#endif // COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_
« no previous file with comments | « components/resource_provider/OWNERS ('k') | components/resource_provider/file_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698