OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 | 9 |
10 // The URL scheme Chromium extensions are served from. | 10 // The URL scheme Chromium extensions are served from. |
11 extern const char kExtensionURLScheme[]; | 11 extern const char kExtensionURLScheme[]; |
12 | 12 |
13 // The URL scheme Chromium user scripts are served from. | 13 // The URL scheme Chromium user scripts are served from. |
14 extern const char kUserScriptURLScheme[]; | 14 extern const char kUserScriptURLScheme[]; |
15 | 15 |
16 // Gets a FilePath for a resource inside an extension. |extension_path| is the | |
17 // full path to the extension directory. |resource_path| is the path to the | |
18 // resource from the extension root, including the leading '/'. | |
19 FilePath GetPathForExtensionResource(const FilePath& extension_path, | |
20 const std::string& resource_path); | |
21 | |
22 // Registers support for the extension URL scheme. | 16 // Registers support for the extension URL scheme. |
23 void RegisterExtensionProtocols(); | 17 void RegisterExtensionProtocols(); |
24 | 18 |
25 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ | 19 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ |
OLD | NEW |