summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_protocols.h
blob: 25f9fda8d537dcf953e6452601e2b2dfa08f0c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2006-2008 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_

#include "base/file_path.h"

// The URL scheme Chromium extensions are served from.
extern const char kExtensionURLScheme[];

// The URL scheme Chromium user scripts are served from.
extern const char kUserScriptURLScheme[];

// Gets a FilePath for a resource inside an extension. |extension_path| is the
// full path to the extension directory. |resource_path| is the path to the
// resource from the extension root, including the leading '/'.
FilePath GetPathForExtensionResource(const FilePath& extension_path,
                                     const std::string& resource_path);

// Registers support for the extension URL scheme.
void RegisterExtensionProtocols();

#endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_