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

Side by Side Diff: components/resource_provider/file_utils.h

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
Patch Set: . Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_ 5 #ifndef COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_
6 #define COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_ 6 #define COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace base { 10 namespace base {
11 class FilePath; 11 class FilePath;
12 } 12 }
13 13
14 namespace resource_provider { 14 namespace resource_provider {
15 15
16 // Returns the path to the resources for |application_url|, or an empty 16 // Returns the path to the resources for |application_name|, or an empty
17 // path if |application_url| is not valid. 17 // path if |application_name| is not valid.
18 base::FilePath GetPathForApplicationUrl(const std::string& application_url); 18 base::FilePath GetPathForApplicationName(const std::string& application_name);
19 19
20 // Returns the path to the specified resource. |app_path| was previously 20 // Returns the path to the specified resource. |app_path| was previously
21 // obtained by way of GetPathForApplicationUrl(). 21 // obtained by way of GetPathForApplicationName().
22 base::FilePath GetPathForResourceNamed(const base::FilePath& app_path, 22 base::FilePath GetPathForResourceNamed(const base::FilePath& app_path,
23 const std::string& resource_path); 23 const std::string& resource_path);
24 24
25 } // namespace resource_provider 25 } // namespace resource_provider
26 26
27 #endif // COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_ 27 #endif // COMPONENTS_RESOURCE_PROVIDER_FILE_UTILS_H_
OLDNEW
« no previous file with comments | « components/resource_provider/apptest_manifest.json ('k') | components/resource_provider/file_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698