OLD | NEW |
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_EXTENSION_PROTOCOLS_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/url_request/url_request_job_factory.h" | 10 #include "net/url_request/url_request_job_factory.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 net::HttpResponseHeaders* BuildHttpHeaders( | 26 net::HttpResponseHeaders* BuildHttpHeaders( |
27 const std::string& content_security_policy, | 27 const std::string& content_security_policy, |
28 bool send_cors_header, | 28 bool send_cors_header, |
29 const base::Time& last_modified_time); | 29 const base::Time& last_modified_time); |
30 | 30 |
31 // Creates the handlers for the chrome-extension:// scheme. Pass true for | 31 // Creates the handlers for the chrome-extension:// scheme. Pass true for |
32 // |is_incognito| only for incognito profiles and not for Chrome OS guest mode | 32 // |is_incognito| only for incognito profiles and not for Chrome OS guest mode |
33 // profiles. | 33 // profiles. |
34 net::URLRequestJobFactory::ProtocolHandler* CreateExtensionProtocolHandler( | 34 net::URLRequestJobFactory::ProtocolHandler* CreateExtensionProtocolHandler( |
35 bool is_incognito, | 35 bool is_incognito, |
36 extensions::InfoMap* extension_info_map); | 36 InfoMap* extension_info_map); |
37 | 37 |
38 } // namespace extensions | 38 } // namespace extensions |
39 | 39 |
40 #endif // EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ | 40 #endif // EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ |
OLD | NEW |