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

Unified Diff: extensions/browser/extension_protocols.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698