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

Side by Side Diff: chrome/browser/extensions/extension_protocols.h

Issue 18352: Miscellaneous changes to Extension class in prep for user scripts (Closed)
Patch Set: be more paranoid about accessing string indexes than is probably warranted Created 11 years, 11 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 (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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension.cc ('k') | chrome/browser/extensions/extension_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698