Index: extensions/browser/extension_protocols.h |
diff --git a/chrome/browser/extensions/extension_protocols.h b/extensions/browser/extension_protocols.h |
similarity index 33% |
rename from chrome/browser/extensions/extension_protocols.h |
rename to extensions/browser/extension_protocols.h |
index ffef9d1391eb23b075719a6dded39bc556963061..d0462e0e131c4ad6e4c95e763a87db1ff4657e85 100644 |
--- a/chrome/browser/extensions/extension_protocols.h |
+++ b/extensions/browser/extension_protocols.h |
@@ -2,19 +2,39 @@ |
// 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_ |
+#ifndef EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ |
+#define EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ |
+ |
+#include <string> |
-#include "chrome/browser/profiles/profile.h" |
#include "net/url_request/url_request_job_factory.h" |
+namespace base { |
+class Time; |
+} |
+ |
+namespace net { |
+class HttpResponseHeaders; |
+} |
+ |
namespace extensions { |
+ |
class InfoMap; |
-} |
-// Creates the handlers for the chrome-extension:// scheme. |
+// Builds HTTP headers for an extension request. Hashes the time to avoid |
+// exposing the exact user installation time of the extension. |
+net::HttpResponseHeaders* BuildHttpHeaders( |
+ const std::string& content_security_policy, |
+ bool send_cors_header, |
+ const base::Time& last_modified_time); |
+ |
+// Creates the handlers for the chrome-extension:// scheme. Pass true for |
+// |is_incognito| only for incognito profiles and not for Chrome OS guest mode |
+// profiles. |
net::URLRequestJobFactory::ProtocolHandler* CreateExtensionProtocolHandler( |
- Profile::ProfileType profile_type, |
+ bool is_incognito, |
extensions::InfoMap* extension_info_map); |
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ |
+} // namespace extensions |
+ |
+#endif // EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ |