OLD | NEW |
| (Empty) |
1 // Copyright 2015 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 COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_ | |
6 #define COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_ | |
7 | |
8 #include <string> | |
9 | |
10 namespace base { | |
11 class FilePath; | |
12 } | |
13 | |
14 namespace resource_provider { | |
15 | |
16 // Returns the path to the resources for |application_name|, or an empty | |
17 // path if |application_name| is not valid. | |
18 base::FilePath GetPathForApplicationName(const std::string& application_name); | |
19 | |
20 // Returns the path to the specified resource. |app_path| was previously | |
21 // obtained by way of GetPathForApplicationName(). | |
22 base::FilePath GetPathForResourceNamed(const base::FilePath& app_path, | |
23 const std::string& resource_path); | |
24 | |
25 } // namespace resource_provider | |
26 | |
27 #endif // COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_ | |
OLD | NEW |