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

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

Issue 552103003: Remove trailing '\' to avoid build failure on gcc 4.x toolchain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/browser/extensions/chrome_url_request_util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_
6 #define EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_ 6 #define EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_
7 7
8 namespace net { 8 namespace net {
9 class URLRequest; 9 class URLRequest;
10 } 10 }
11 11
12 namespace extensions { 12 namespace extensions {
13 class Extension; 13 class Extension;
14 class InfoMap; 14 class InfoMap;
15 15
16 // Utilities related to URLRequest jobs for extension resources. See 16 // Utilities related to URLRequest jobs for extension resources. See
17 // chrome/browser/extensions/extension_protocols_unittest.cc for related tests. 17 // chrome/browser/extensions/extension_protocols_unittest.cc for related tests.
18 namespace url_request_util { 18 namespace url_request_util {
19 19
20 // Sets allowed=true to allow a chrome-extension:// resource request coming from 20 // Sets allowed=true to allow a chrome-extension:// resource request coming from
21 // renderer A to access a resource in an extension running in renderer B.\ 21 // renderer A to access a resource in an extension running in renderer B.
22 // Returns false when it couldn't determine if the resource is allowed or not 22 // Returns false when it couldn't determine if the resource is allowed or not
23 bool AllowCrossRendererResourceLoad(net::URLRequest* request, 23 bool AllowCrossRendererResourceLoad(net::URLRequest* request,
24 bool is_incognito, 24 bool is_incognito,
25 const Extension* extension, 25 const Extension* extension,
26 InfoMap* extension_info_map, 26 InfoMap* extension_info_map,
27 bool* allowed); 27 bool* allowed);
28 28
29 // Returns true if |request| corresponds to a resource request from a 29 // Returns true if |request| corresponds to a resource request from a
30 // <webview>. 30 // <webview>.
31 bool IsWebViewRequest(net::URLRequest* request); 31 bool IsWebViewRequest(net::URLRequest* request);
32 32
33 } // namespace url_request_util 33 } // namespace url_request_util
34 } // namespace extensions 34 } // namespace extensions
35 35
36 #endif // EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_ 36 #endif // EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_url_request_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698