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

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

Issue 229733002: Toro: Move ExtensionProtocolHandler to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (extension-protocols) Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_
7
8 #include <string>
9
10 namespace base {
11 class FilePath;
12 }
13
14 namespace net {
15 class NetworkDelegate;
16 class URLRequest;
17 class URLRequestJob;
18 }
19
20 namespace extensions {
21 class Extension;
22 class InfoMap;
23
24 // Utilities related to URLRequest jobs for extension resources.
25 namespace url_request_util {
26
27 // Returns true to allow a chrome-extension:// resource request coming from
28 // renderer A to access a resource in an extension running in renderer B.
29 bool AllowCrossRendererResourceLoad(net::URLRequest* request,
30 bool is_incognito,
31 const Extension* extension,
32 InfoMap* extension_info_map);
33
34 // Creates a URLRequestJob for loading component extension resources out of
35 // a Chrome resource bundle. Returns NULL if the requested resource is not a
36 // component extension resource.
37 net::URLRequestJob* MaybeCreateURLRequestResourceBundleJob(
38 net::URLRequest* request,
39 net::NetworkDelegate* network_delegate,
40 const base::FilePath& directory_path,
41 const std::string& content_security_policy,
42 bool send_cors_header);
43
44 } // namespace url_request_util
45 } // namespace extensions
46
47 #endif // CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_protocols_unittest.cc ('k') | chrome/browser/extensions/url_request_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698